diff options
| author | Henry Jameson <me@hjkos.com> | 2021-04-11 23:03:03 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2021-04-11 23:03:03 +0300 |
| commit | 2f549774ab6f7dae08ad1cc5977cbf74b86e6d78 (patch) | |
| tree | 40727e74f95ab23225c60886899fbe0496af47b7 /build/webpack.base.conf.js | |
| parent | d695dcaff91ce616549dc54c02b8bf9167f2be58 (diff) | |
No longer need to put ruffle stuff in source tree. Made ruffle not use
polyfills also.
Diffstat (limited to 'build/webpack.base.conf.js')
| -rw-r--r-- | build/webpack.base.conf.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js index d987eff1..900d824b 100644 --- a/build/webpack.base.conf.js +++ b/build/webpack.base.conf.js @@ -3,6 +3,7 @@ var config = require('../config') var utils = require('./utils') var projectRoot = path.resolve(__dirname, '../') var ServiceWorkerWebpackPlugin = require('serviceworker-webpack-plugin') +var CopyPlugin = require('copy-webpack-plugin'); var env = process.env.NODE_ENV // check env & config/index.js to decide weither to enable CSS Sourcemaps for the @@ -93,6 +94,19 @@ module.exports = { new ServiceWorkerWebpackPlugin({ entry: path.join(__dirname, '..', 'src/sw.js'), filename: 'sw-pleroma.js' + }), + // This copies Ruffle's WASM to a directory so that JS side can access it + new CopyPlugin({ + patterns: [ + { + from: "node_modules/ruffle-mirror/*", + to: "static/ruffle", + flatten: true + }, + ], + options: { + concurrency: 100, + }, }) ] } |
