You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
722 B

3 years ago
3 years ago
3 years ago
  1. var webpack = require('webpack');
  2. var merge = require('webpack-merge');
  3. var common = require('./webpack.config.common.js');
  4. var Path = require('path');
  5. const rootDir = Path.resolve(__dirname, '../../../..');
  6. var local = {
  7. devServer: {
  8. contentBase: [
  9. Path.resolve(__dirname, 'dev'), // fastOptJS output
  10. Path.resolve(rootDir, 'assets') // project root containing index.html
  11. ],
  12. watchContentBase: true,
  13. hot: false,
  14. hotOnly: false, // only reload when build is successful
  15. inline: true, // live reloading
  16. watchOptions: {
  17. poll: 1000,
  18. ignored: ["node_modules"]
  19. }
  20. },
  21. };
  22. module.exports = merge(common, local);