1 Star 0 Fork 38

酷米亚网络科技有限公司/colloc

forked from JetLu/colloc 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
webpack.config.js 770 Bytes
一键复制 编辑 原始数据 按行查看 历史
JetLu 提交于 2019-06-27 19:20 . :blue_heart:
const
os = require('os'),
path = require('path'),
webpack = require('webpack')
const isProd = process.env.NODE_ENV === 'production'
module.exports = {
entry: [
'./libs/adapter',
'./src/app.js'
],
output: {
path: path.resolve('dist'),
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({
PIXI: 'pixi.js'
})
],
mode: isProd ? 'production' : 'development'
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/cs-coomia/colloc.git
git@gitee.com:cs-coomia/colloc.git
cs-coomia
colloc
colloc
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385