Add copy-webpack-plugin initialization

parent 86ff4456
const path = require('path')
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const StylelintPlugin = require('stylelint-webpack-plugin')
const CopyPlugin = require('copy-webpack-plugin');
module.exports = {
entry: {
......@@ -91,6 +92,12 @@ module.exports = {
new MiniCssExtractPlugin({
filename: '[name].css'
}),
new StylelintPlugin()
new StylelintPlugin(),
new CopyPlugin({
patterns: [
{ from: 'src/images/', to: 'images/' }
]
})
]
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment