1 Star 0 Fork 38

世玉/colloc

forked from JetLu/colloc 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
webpack.config.js 803 Bytes
一键复制 编辑 原始数据 按行查看 历史
JetLu 提交于 2019-08-05 22:03 . update
const
os = require('os'),
path = require('path'),
webpack = require('webpack')
const isProd = process.env.NODE_ENV === 'production'
module.exports = {
entry: [
'@iro/wechat-adapter',
'./src/app.js'
],
output: {
path: path.resolve('dist/root'),
filename: 'game.js'
},
resolve: {
alias: {
'@': path.resolve('.')
}
},
devtool: isProd ? false : 'source-map',
stats: 'errors-only',
module: {
rules: [
{
test: /\.js$/,
use: ['babel-loader'],
exclude: /node_modules/
},
{
test: /\.(vert|frag)$/,
use: ['raw-loader']
}
]
},
plugins: [
new webpack.ProvidePlugin({
dayjs: 'dayjs',
PIXI: 'pixi.js',
})
],
mode: isProd ? 'production' : 'development'
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/chensty/colloc.git
git@gitee.com:chensty/colloc.git
chensty
colloc
colloc
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385