mirror of https://github.com/requarks/wiki
parent
1be3234ba1
commit
f0e45ece6f
@ -1,19 +1,28 @@
|
|||||||
const webpack = require('webpack')
|
const webpack = require('webpack')
|
||||||
const merge = require('webpack-merge')
|
const merge = require('webpack-merge')
|
||||||
|
const path = require('path')
|
||||||
|
|
||||||
const ExtractTextPlugin = require('extract-text-webpack-plugin')
|
const ExtractTextPlugin = require('extract-text-webpack-plugin')
|
||||||
|
|
||||||
const common = require('./webpack.common.js')
|
const common = require('./webpack.common.js')
|
||||||
|
|
||||||
module.exports = merge(common, {
|
module.exports = merge(common, {
|
||||||
module: {
|
entry: {
|
||||||
rules: []
|
client: ['./client/index.js', 'webpack-hot-middleware/client']
|
||||||
|
},
|
||||||
|
output: {
|
||||||
|
pathinfo: true,
|
||||||
|
publicPath: '/'
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
new webpack.DefinePlugin({
|
new webpack.DefinePlugin({
|
||||||
'process.env.NODE_ENV': JSON.stringify('development')
|
'process.env.NODE_ENV': JSON.stringify('development')
|
||||||
}),
|
}),
|
||||||
new ExtractTextPlugin({ disable: true })
|
new ExtractTextPlugin({ disable: true }),
|
||||||
|
new webpack.HotModuleReplacementPlugin(),
|
||||||
|
new webpack.WatchIgnorePlugin([
|
||||||
|
/node_modules/
|
||||||
|
])
|
||||||
],
|
],
|
||||||
resolve: {}
|
watch: true
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in new issue