UNPKG

@mamba/webpack

Version:

Webpack configs for Mamba Applications

37 lines (32 loc) 759 B
/** * Webpack configuration for active development */ const webpack = require('webpack'); const merge = require('webpack-merge'); const { fromCwd } = require('quickenv'); module.exports = merge(require('./config.app.js'), { devtool: 'eval-source-map', plugins: [new webpack.HotModuleReplacementPlugin()], optimization: { namedModules: true, noEmitOnErrors: true, }, devServer: { contentBase: [fromCwd('src')], compress: true, headers: { 'X-Content-Type-Options': 'nosniff', 'X-Frame-Options': 'DENY', }, host: '0.0.0.0', open: false, overlay: { warnings: false, errors: true, }, inline: true, port: 8080, publicPath: 'http://localhost:8080/', hot: true, }, });