Sha256: 99278b1894e978a291e56a7814af123ffff692c5ea672a36b82a45fab0861fe0
Contents?: true
Size: 1.36 KB
Versions: 2
Compression:
Stored size: 1.36 KB
Contents
const { merge } = require('webpack-merge') const baseConfig = require('./base') const devServer = require('../dev_server') const { runningWebpackDevServer } = require('../env') const { outputPath: contentBase, publicPath } = require('../config') let devConfig = { mode: 'development', devtool: 'cheap-module-source-map' } if (runningWebpackDevServer) { if (devServer.hmr) { devConfig = merge(devConfig, { output: { filename: '[name]-[hash].js' } }) } devConfig = merge(devConfig, { 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 || devServer.hmr, injectClient: devServer.hmr, injectHot: devServer.hmr, useLocalIp: devServer.use_local_ip, public: devServer.public, publicPath, historyApiFallback: { disableDotRule: true }, headers: devServer.headers, overlay: devServer.overlay, stats: { colors: true, entrypoints: false, errorDetails: true, modules: false, moduleTrace: false }, watchOptions: devServer.watch_options } }) } module.exports = merge(baseConfig, devConfig)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
webpacker-6.0.0.rc.2 | package/environments/development.js |
webpacker-6.0.0.rc.1 | package/environments/development.js |