updated to latest versions
This commit is contained in:
+10
-6
@@ -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]')
|
||||
}
|
||||
]
|
||||
}
|
||||
])
|
||||
)
|
||||
]
|
||||
});
|
||||
Reference in New Issue
Block a user