Huauauaa / cheat-sheet

https://huauauaa.github.io/cheat-sheet/
0 stars 0 forks source link

copy-webpack-plugin #66

Open Huauauaa opened 1 year ago

Huauauaa commented 1 year ago
const CopyWebpackPlugin = require('copy-webpack-plugin');

module.exports = {
    context: path.join(__dirname, 'your-app'),
    plugins: [
        new CopyWebpackPlugin({
            patterns: [
                { from: 'static' }
            ]
        })
    ]
};
Huauauaa commented 1 year ago

https://webpack.js.org/configuration/configuration-types/