1 Star 0 Fork 12

skymysky/kpc

forked from Javey/kpc 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
webpack.config.client.js 1013 Bytes
一键复制 编辑 原始数据 按行查看 历史
Javey 提交于 2018-04-02 17:55 . chore: rename core to app
const webpack = require('webpack');
const path = require('path');
const webpackConfig = require('./webpack.config.common');
const merge = require('webpack-merge');
module.exports = merge.smartStrategy({
'module.rules.use': 'prepend'
})(webpackConfig, {
entry: {
'static/client': [
'webpack-hot-middleware/client?reload=true',
'./app/client.js',
],
},
devtool: '#inline-source-map',
output: {
chunkFilename: 'static/chunk/[chunkhash].js'
},
module: {
rules: [
{
test: /\.(styl|css)$/,
use: [
{
loader: 'style-loader',
},
]
},
]
},
plugins: [
new webpack.optimize.CommonsChunkPlugin({
children: true,
async: true,
minChunks: 3
}),
new webpack.DefinePlugin({
'process.browser': true,
}),
],
});
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/skymysky/kpc.git
git@gitee.com:skymysky/kpc.git
skymysky
kpc
kpc
master

搜索帮助