1 Star 0 Fork 1

阿木/soshm

forked from constantine/soshm 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
webpack.config.js 938 Bytes
一键复制 编辑 原始数据 按行查看 历史
calledt 提交于 2017-02-07 14:10 . move autoprefixer config to package.json
var path = require('path');
var webpack = require('webpack');
var autoprefixer = require('autoprefixer');
var libraryName = 'soshm';
var outputFile = libraryName + '.js';
module.exports = {
entry: path.resolve(__dirname, 'src/js/index.js'),
output: {
path: path.resolve(__dirname, 'dist'),
filename: outputFile,
library: libraryName,
libraryTarget: 'umd',
umdNamedDefine: true
},
module: {
loaders: [
{
test: /\.scss$/,
loader: 'style!css?minimize!postcss!sass'
},
{
test: /\.(png|jpg|jpeg|webp|gif)$/,
loader: 'url?limit=20000&name=img/[name].[ext]'
},
]
},
plugins: [
new webpack.optimize.DedupePlugin(),
new webpack.optimize.OccurrenceOrderPlugin(),
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify('production')
})
],
resolve: {extensions: ['', '.js', '.scss']},
postcss: [autoprefixer()]
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/amujcdd/soshm.git
[email protected]:amujcdd/soshm.git
amujcdd
soshm
soshm
master

搜索帮助