* 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>
19 lines
412 B
JavaScript
19 lines
412 B
JavaScript
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;
|