Add webpack dev server

This commit is contained in:
Baptiste Grob
2020-03-11 16:46:01 +01:00
parent fd94a201b0
commit bbceed8c42
6 changed files with 1344 additions and 5 deletions

View File

@@ -7,6 +7,10 @@ module.exports = {
output: {
filename: './javascripts/app.js'
},
devServer: {
contentBase: path.resolve(__dirname, 'public'),
port: 3000
},
plugins: [
new webpack.DefinePlugin({
__VERSION__: JSON.stringify(require('./package.json').version)