webpack-config-vacuumlabs
Version:
Default Webpack 2 & 3 config we use in vacuumlabs.
15 lines (13 loc) • 439 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = _default;
function _default(options) {
return {
path: options.buildDir,
filename: options.useHashedAssetNames ? '[name].[hash].js' : '[name].js',
chunkFilename: '[name]-[chunkhash].js',
publicPath: options.env === 'development' ? "http://".concat(options.host, ":").concat(options.port, "/") : options.publicPath
};
}