new version for latest webpack 4.28.x

This commit is contained in:
David Meincke
2019-01-20 12:54:34 +01:00
parent b060a71135
commit 5ca9607377
24 changed files with 12481 additions and 204 deletions
+27
View File
@@ -0,0 +1,27 @@
const path = require('path');
const merge = require('webpack-merge');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const common = require('./webpack.common.js');
const devFolderName = "dev-dist";
module.exports = merge(common, {
mode: 'development',
output: {
path: path.resolve(__dirname, devFolderName),
publicPath: "/",
filename: 'main.js'
},
devServer: {
contentBase: './' + devFolderName,
historyApiFallback: true
},
plugins: [
new CopyWebpackPlugin([
{
from: path.resolve(__dirname, '*.html'),
to: path.resolve(__dirname, devFolderName, '[name].[ext]')
}
])
]
});