Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // internals/webpack/webpack.base.babel.js
- // Changed the place of build folder
- output: Object.assign(
- {
- // Compile into js/build.js
- path: path.resolve(process.cwd(), 'app/build'),
- publicPath: '/',
- },
- options.output,
- ),
- // internals/webpack/webpack.prod.babel.js
- // Changed the public path as relative in index.html
- output: {
- filename: '[name].[chunkhash].js',
- chunkFilename: '[name].[chunkhash].chunk.js',
- publicPath: './',
- },
- // server/index.js
- // Changed the output path for express static middleware
- setup(app, {
- outputPath: resolve(process.cwd(), 'app/build'),
- publicPath: '/',
- });
- // server/middlewares/addProdMiddlewares.js
- const outputPath = options.outputPath || path.resolve(process.cwd(), 'app/build');
Add Comment
Please, Sign In to add comment