Guest User

Untitled

a guest
Jul 20th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. // internals/webpack/webpack.base.babel.js
  2. // Changed the place of build folder
  3. output: Object.assign(
  4. {
  5. // Compile into js/build.js
  6. path: path.resolve(process.cwd(), 'app/build'),
  7. publicPath: '/',
  8. },
  9. options.output,
  10. ),
  11.  
  12. // internals/webpack/webpack.prod.babel.js
  13. // Changed the public path as relative in index.html
  14. output: {
  15. filename: '[name].[chunkhash].js',
  16. chunkFilename: '[name].[chunkhash].chunk.js',
  17. publicPath: './',
  18. },
  19.  
  20. // server/index.js
  21. // Changed the output path for express static middleware
  22. setup(app, {
  23. outputPath: resolve(process.cwd(), 'app/build'),
  24. publicPath: '/',
  25. });
  26.  
  27. // server/middlewares/addProdMiddlewares.js
  28. const outputPath = options.outputPath || path.resolve(process.cwd(), 'app/build');
Add Comment
Please, Sign In to add comment