You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
656 B
28 lines
656 B
const path = require('path'); |
|
const webpack = require('webpack'); |
|
|
|
module.exports = { |
|
entry: './src/index.js', |
|
plugins: [ |
|
new webpack.HotModuleReplacementPlugin(), |
|
], |
|
output: { |
|
filename: 'bundle.js', |
|
path: path.resolve(__dirname, 'dist'), |
|
publicPath: '/' |
|
}, |
|
module: { |
|
rules: [ |
|
{ test: /\.js$/, exclude: /node_modules/, loader: "babel-loader" } |
|
] |
|
}, |
|
stats: "normal", |
|
devServer: { |
|
contentBase: path.join(__dirname, "dist"), |
|
publicPath: '/', |
|
//inline: true, |
|
hot: true, |
|
host: '0.0.0.0', |
|
disableHostCheck: true |
|
}, |
|
};
|
|
|