8 Star 23 Fork 3

Gitee 极速下载 / codecombat

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/codecombat/codecombat
克隆/下载
webpack.karma.config.js 1.02 KB
一键复制 编辑 原始数据 按行查看 历史
// Use this webpack config for Karma testing, with `webpack --config webpack.karma.config.js`
// This config is automatically selected depending on process.env in webpack.config.js
// process.traceDeprecation = true;
const webpack = require('webpack');
const _ = require('lodash');
const baseConfigFn = require('./webpack.base.config')
// Development webpack config
module.exports = (env) => {
if (!env) env = {};
const baseConfig = baseConfigFn(env);
return _.merge(_.assign(baseConfig, {
// Only use this one entry point for karma testing
entry: {
test: './app/assets/javascripts/run-tests.js'
}
}), {
output: _.merge({}, baseConfig.output, {
chunkFilename: 'javascripts/chunks/[name].bundle.js',
}),
plugins: [
new webpack.DefinePlugin({
DEF_CHINA_INFRA: process.env.COCO_CHINA_INFRASTRUCTURE ? 'true' : 'false',
})
],
mode: 'development'
// TODO: Get sourcemaps working with Karma
// devtool: 'source-map', // https://webpack.js.org/configuration/devtool/
})
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/mirrors/codecombat.git
git@gitee.com:mirrors/codecombat.git
mirrors
codecombat
codecombat
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891