1 Star 0 Fork 1

bardian / vue-stomp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
webpack.build.config.js 1.33 KB
一键复制 编辑 原始数据 按行查看 历史
擎天飞熊 提交于 2016-12-31 21:19 . Add files via upload
var webpack = require('webpack');
var path = require('path');
var paths = {
src: './src/',
dist: './dist/'
};
module.exports = [
{
devtool: "source-map",
entry: "./src/index",
output: {
path: paths.dist,
publicPath: paths.dist,
filename: "vue-stomp.js",
library: "VueStomp",
libraryTarget: "umd"
},
resolve: {
extensions: ['', '.js', '.vue', '.styl'],
alias: {
'src': path.resolve(__dirname, '')
}
},
resolveLoader: {
root: path.join(__dirname, 'node_modules')
},
plugins: [
new webpack.DefinePlugin({
"process.env" : {
NODE_ENV : JSON.stringify("production")
}
}),
new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false
}
}),
new webpack.optimize.DedupePlugin()
],
module: {
loaders: [
{
"test": /\.js?$/,
"exclude": /node_modules/,
"loader": "babel"
},
{
"test": /\.vue$/,
"loader": "vue"
}
]
},
node: {
fs: "empty"
}
}
];
其他
1
https://gitee.com/zhurui536/vue-stomp.git
git@gitee.com:zhurui536/vue-stomp.git
zhurui536
vue-stomp
vue-stomp
master

搜索帮助