1 Star 0 Fork 1

MilitiFS/codecombat

forked from neojayll/codecombat 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
webpack.development.config.js 1.05 KB
一键复制 编辑 原始数据 按行查看 历史
// Use this webpack config for development, with `webpack --config webpack.development.config.js`
// process.traceDeprecation = true;
const webpack = require('webpack');
const _ = require('lodash');
const LiveReloadPlugin = require('webpack-livereload-plugin');
const baseConfigFn = require('./webpack.base.config')
// Development webpack config
module.exports = (env) => {
if (!env) env = {};
const baseConfig = baseConfigFn(env);
return _.merge(baseConfig, {
output: _.merge({}, baseConfig.output, {
chunkFilename: 'javascripts/chunks/[name].bundle.js',
}),
devtool: 'eval-source-map', // https://webpack.js.org/configuration/devtool/
plugins: baseConfig.plugins.concat([
new webpack.BannerPlugin({ // Label each module in the output bundle
banner: "hash:[hash], chunkhash:[chunkhash], name:[name], filebase:[filebase], query:[query], file:[file]"
}),
new LiveReloadPlugin({ // Reload the page upon rebuild
appendScriptTag: true,
port: process.env.WEBPACK_LIVE_RELOAD_PORT || 35432
}),
])
})
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/militifs_admin/codecombat.git
git@gitee.com:militifs_admin/codecombat.git
militifs_admin
codecombat
codecombat
master

搜索帮助