feat: copy static to dist folder for prod (#1057)
* feat: copy static to dist folder for prod * chore: update webpack.prod.config.js Co-authored-by: Ben Warzeski <bwarzeski@edx.org> Co-authored-by: Ben Warzeski <bwarzeski@edx.org>
This commit is contained in:
18
webpack.prod.config.js
Normal file
18
webpack.prod.config.js
Normal file
@@ -0,0 +1,18 @@
|
||||
const path = require('path');
|
||||
const { createConfig } = require('@edx/frontend-build');
|
||||
const CopyPlugin = require('copy-webpack-plugin');
|
||||
|
||||
const config = createConfig('webpack-prod');
|
||||
|
||||
config.plugins.push(
|
||||
new CopyPlugin({
|
||||
patterns: [
|
||||
{
|
||||
from: path.resolve(__dirname, './public/static'),
|
||||
to: path.resolve(__dirname, './dist/static'),
|
||||
},
|
||||
],
|
||||
}),
|
||||
);
|
||||
|
||||
module.exports = config;
|
||||
Reference in New Issue
Block a user