4 Star 2 Fork 0

Gitee 极速下载 / weapp-wrapper

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/xixilive/weapp
克隆/下载
webpack.config.js 847 Bytes
一键复制 编辑 原始数据 按行查看 历史
xixilive 提交于 2017-12-29 23:33 . up-to wx v1.7.0, bump version to 0.4.0
var path = require('path')
var webpack = require('webpack')
var pkg = require('./package.json')
module.exports = {
devtool: null,
context: path.join(__dirname, 'es6'),
entry: {
'index': './index'
},
output: {
path: path.join(__dirname, 'dist'),
filename: '[name].js',
libraryTarget: 'umd'
},
module: {
loaders: [
{
test: /\.js$/,
loader: 'babel',
include: path.join(__dirname, 'es6'),
exclude: path.join(__dirname, 'node_modules')
}
]
},
resolve: {
extensions: ['', '.js'],
modulesDirectories: ['es6', 'node_modules']
},
plugins: [
new webpack.NoErrorsPlugin(),
new webpack.DefinePlugin({
'process.env': {
'VERSION': JSON.stringify(pkg.version),
'API_VERSION': JSON.stringify(pkg.apiVersion)
}
})
]
}
1
https://gitee.com/mirrors/weapp-wrapper.git
git@gitee.com:mirrors/weapp-wrapper.git
mirrors
weapp-wrapper
weapp-wrapper
master

搜索帮助