Commit e0be1397 authored by JC Brand's avatar JC Brand

Update copy-webpack-plugin to version 6.0.2

parent 73d33e11
This diff is collapsed.
......@@ -18,7 +18,8 @@ module.exports = merge(common, {
cleanStaleWebpackAssets: false // resolves conflict with CopyWebpackPlugin
}),
new MiniCssExtractPlugin({filename: '../dist/converse.min.css'}),
new CopyWebpackPlugin([
new CopyWebpackPlugin({
patterns: [
{from: 'sounds', to: 'sounds'},
{from: 'node_modules/@fortawesome/fontawesome-free/sprites/solid.svg', to: '@fortawesome/fontawesome-free/sprites/solid.svg'},
{from: 'images/favicon.ico', to: 'images/favicon.ico'},
......@@ -28,7 +29,8 @@ module.exports = merge(common, {
{from: 'logo/conversejs-filled-192.svg', to: 'images/logo'},
{from: 'logo/conversejs-filled-512.svg', to: 'images/logo'},
{from: 'sass/webfonts', to: 'webfonts'}
]),
]
}),
new webpack.DefinePlugin({ // This makes it possible for us to safely use env vars on our code
'process.env.ASSET_PATH': JSON.stringify(ASSET_PATH)
})
......
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