1 Star 0 Fork 36

satellites/vue-express-mongodb

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
webpack.config.js 1.28 KB
一键复制 编辑 原始数据 按行查看 历史
袁书记 提交于 2017-06-26 17:41 . vue + express + mongodb
var path = require('path')
var webpack = require('webpack')
module.exports = {
entry: path.join(__dirname, 'src/client/index.js'),
output: {
path: path.join(__dirname, 'src/server/public/javascripts/'),
publicPath: '/javascripts/',
filename: 'build.js'
},
resolve: {
extensions: ['', '.js', '.vue']
},
resolveLoader: {
root: path.join(__dirname, 'node_modules')
},
module: {
// eslint 关闭
// preLoaders: [
// {
// test: /\.vue$/,
// loader: 'eslint',
// exclude: /node_modules/
// },
// {
// test: /\.js$/,
// loader: 'eslint',
// exclude: /node_modules/
// }
// ],
loaders: [
{
test: /\.js$/,
loader: 'babel',
exclude: /node_modules/,
query: { presets: ['es2015'] }
},
{
test: /\.vue$/,
loader: 'vue'
},
{
test: /\.json$/,
loader: 'json'
},
{
test: /\.(png|jpg|gif|svg)$/,
loader: 'url',
query: {
limit: 10000,
name: '[name].[ext]?[hash:7]'
}
}
]
},
devtool: 'eval-source-map',
eslint: {
formatter: require('eslint-friendly-formatter')
},
plugins: [
new webpack.HotModuleReplacementPlugin()
]
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/satellites/vue-express-mongodb.git
git@gitee.com:satellites/vue-express-mongodb.git
satellites
vue-express-mongodb
vue-express-mongodb
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385