26 lines
752 B
JavaScript
26 lines
752 B
JavaScript
var webpack = require('webpack');
|
|
|
|
module.exports = require('./scalajs.webpack.config');
|
|
|
|
const Path = require('path');
|
|
const rootDir = Path.resolve(__dirname, '../../../..');
|
|
// module.exports.module = {
|
|
// ...module.exports.module,
|
|
// rules: module.exports.module.rules.concat([
|
|
// {
|
|
// test: /\.css$/i,
|
|
// use: ['style-loader', 'css-loader'],
|
|
// },
|
|
// ]),
|
|
// };
|
|
module.exports.devServer = {
|
|
contentBase: [
|
|
Path.resolve(__dirname, 'dev'), // fastOptJS output
|
|
Path.resolve(rootDir, 'assets') // project root containing index.html
|
|
],
|
|
watchContentBase: true,
|
|
hot: false,
|
|
hotOnly: false, // only reload when build is successful
|
|
inline: true // live reloading
|
|
};
|