Add copy-webpack-plugin initialization

parent 86ff4456
const path = require('path') const path = require('path')
const MiniCssExtractPlugin = require('mini-css-extract-plugin') const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const StylelintPlugin = require('stylelint-webpack-plugin') const StylelintPlugin = require('stylelint-webpack-plugin')
const CopyPlugin = require('copy-webpack-plugin');
module.exports = { module.exports = {
entry: { entry: {
...@@ -91,6 +92,12 @@ module.exports = { ...@@ -91,6 +92,12 @@ module.exports = {
new MiniCssExtractPlugin({ new MiniCssExtractPlugin({
filename: '[name].css' 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