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.

25 lines
752 B

3 years ago
  1. var webpack = require('webpack');
  2. module.exports = require('./scalajs.webpack.config');
  3. const Path = require('path');
  4. const rootDir = Path.resolve(__dirname, '../../../..');
  5. // module.exports.module = {
  6. // ...module.exports.module,
  7. // rules: module.exports.module.rules.concat([
  8. // {
  9. // test: /\.css$/i,
  10. // use: ['style-loader', 'css-loader'],
  11. // },
  12. // ]),
  13. // };
  14. module.exports.devServer = {
  15. contentBase: [
  16. Path.resolve(__dirname, 'dev'), // fastOptJS output
  17. Path.resolve(rootDir, 'assets') // project root containing index.html
  18. ],
  19. watchContentBase: true,
  20. hot: false,
  21. hotOnly: false, // only reload when build is successful
  22. inline: true // live reloading
  23. };