updated to latest versions

This commit is contained in:
David
2020-07-14 13:12:09 +02:00
parent fc383b34fb
commit f0328e86e4
8 changed files with 3172 additions and 2377 deletions
+10 -6
View File
@@ -1,6 +1,6 @@
const path = require('path');
const merge = require('webpack-merge');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const { merge } = require('webpack-merge');
const copyPlugin = require('copy-webpack-plugin');
const common = require('./webpack.common.js');
const devFolderName = "dev-dist";
@@ -17,11 +17,15 @@ module.exports = merge(common, {
historyApiFallback: true
},
plugins: [
new CopyWebpackPlugin([
new copyPlugin(
{
from: path.resolve(__dirname, '*.html'),
to: path.resolve(__dirname, devFolderName, '[name].[ext]')
patterns: [
{
from: path.resolve(__dirname, 'index.html'),
to: path.resolve(__dirname, devFolderName, '[name].[ext]')
}
]
}
])
)
]
});