mirror of https://github.com/Requarks/wiki.git
9 changed files with 92 additions and 31 deletions
Split View
Diff Options
-
13dev/webpack/webpack.common.js
-
17dev/webpack/webpack.dev.js
-
8package.json
-
2server/index.js
-
8server/master.js
-
4server/modules/kernel.js
-
1server/worker.js
-
51wiki.js
-
19yarn.lock
@ -1,19 +1,28 @@ |
|||
const webpack = require('webpack') |
|||
const merge = require('webpack-merge') |
|||
const path = require('path') |
|||
|
|||
const ExtractTextPlugin = require('extract-text-webpack-plugin') |
|||
|
|||
const common = require('./webpack.common.js') |
|||
|
|||
module.exports = merge(common, { |
|||
module: { |
|||
rules: [] |
|||
entry: { |
|||
client: ['./client/index.js', 'webpack-hot-middleware/client'] |
|||
}, |
|||
output: { |
|||
pathinfo: true, |
|||
publicPath: '/' |
|||
}, |
|||
plugins: [ |
|||
new webpack.DefinePlugin({ |
|||
'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 |
|||
}) |
Write
Preview
Loading…
Cancel
Save