mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-05 23:10:28 +03:00
configured webpack to copy olm.wasm automatically
This commit is contained in:
parent
0070d46a20
commit
5454ed3458
5 changed files with 228 additions and 3 deletions
|
|
@ -4,6 +4,7 @@ const { merge } = require('webpack-merge');
|
|||
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
||||
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
|
||||
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
|
||||
const CopyPlugin = require("copy-webpack-plugin");
|
||||
|
||||
module.exports = merge(common, {
|
||||
mode: 'production',
|
||||
|
|
@ -35,5 +36,11 @@ module.exports = merge(common, {
|
|||
new MiniCssExtractPlugin({
|
||||
filename: '[name].[contenthash].bundle.css',
|
||||
}),
|
||||
new CopyPlugin({
|
||||
patterns: [
|
||||
{ from: 'olm.wasm' },
|
||||
{ from: '_redirects' },
|
||||
],
|
||||
}),
|
||||
],
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue