UNPKG

662 BJavaScriptView Raw
1const webpackConfig = require('./webpack.config.js');
2const webpack = require('webpack');
3const StringReplacePlugin = require('string-replace-webpack-plugin');
4
5module.exports = {
6 mode: 'development',
7 cache: true,
8 entry: webpackConfig.entry,
9 output: webpackConfig.output,
10 resolve: webpackConfig.resolve,
11 module: webpackConfig.module,
12 devtool: 'source-map',
13 plugins: [
14 new webpack.LoaderOptionsPlugin({
15 debug: true
16 }),
17 new StringReplacePlugin()
18 ],
19 devServer: {
20 port: 8080,
21 host: '0.0.0.0',
22 publicPath: '/dist',
23 hot: true
24 }
25};