Sha256: e2c0de981cd81ed7bac75e6d4ca38931d62a5bec5e475150e1b6029fbf30ee0b
Contents?: true
Size: 1.29 KB
Versions: 4
Compression:
Stored size: 1.29 KB
Contents
const webpack = require('webpack') const Base = require('./base') const devServer = require('../dev_server') const { outputPath: contentBase, publicPath } = require('../config') module.exports = class extends Base { constructor() { super() if (devServer.hmr) { this.plugins.append('HotModuleReplacement', new webpack.HotModuleReplacementPlugin()) this.config.output.filename = '[name]-[hash].js' } this.config.merge({ mode: 'development', devtool: 'cheap-module-source-map', devServer: { clientLogLevel: 'none', compress: devServer.compress, quiet: devServer.quiet, disableHostCheck: devServer.disable_host_check, host: devServer.host, port: devServer.port, https: devServer.https, hot: devServer.hmr, contentBase, inline: devServer.inline, useLocalIp: devServer.use_local_ip, public: devServer.public, publicPath, historyApiFallback: { disableDotRule: true }, headers: devServer.headers, overlay: devServer.overlay, stats: { entrypoints: false, errorDetails: true, modules: false, moduleTrace: false }, watchOptions: devServer.watch_options } }) } }
Version data entries
4 entries across 4 versions & 1 rubygems