1 Star 0 Fork 13

my_god404 / 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'
});
JavaScript
1
https://gitee.com/my_god404/codelf.git
git@gitee.com:my_god404/codelf.git
my_god404
codelf
codelf
master

搜索帮助