1 Star 0 Fork 13

HANS许/codelf

forked from Dapenson/codelf 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
webpack.config.js 701 Bytes
一键复制 编辑 原始数据 按行查看 历史
'use strict'
const path = require('path');
const merge = require('webpack-merge');
const common = {
entry: ['@babel/polyfill', './src/App.js'],
output: {
filename: 'app.js',
path: path.resolve(__dirname, 'app/js'),
publicPath: '/app/js'
},
externals: {
'react': 'React',
'react-dom': 'ReactDOM'
},
module: {
rules: [
{
test: /\.jsx?$/,
include: [
path.resolve(__dirname, 'src'),
path.resolve(__dirname, 'node_modules')
],
loader: 'babel-loader'
}
]
}
};
exports.dev = merge(common, {
mode: 'development',
devtool: 'source-map'
});
exports.prod = merge(common, {
mode: 'production'
});
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/592576605/codelf.git
git@gitee.com:592576605/codelf.git
592576605
codelf
codelf
master

搜索帮助