This repository was archived by the owner on Sep 25, 2023. It is now read-only.
This repository was archived by the owner on Sep 25, 2023. It is now read-only.
webpack.config.js更新 #1
Open
Description
尝试了一下clone然后跑,有几个地方似乎会有问题,修改之后成功跑起来了:
webpack.config.js:
module.exports = {
entry: './src/main.js',
output: {
- path: './dist',
+ path: '/dist',
publicPath: 'dist/',
filename: 'build.js'
},
module: {
loaders: [{
test: /\.js$/,
- loader: 'babel',
+ loader: 'babel-loader',
exclude: /node_modules/
}, {
test: /\.vue$/,
- loader: 'vue'
+ loader: 'vue-loader'
}]
- },
- vue: {
- loaders: {
- js: 'babel'
- }
}
}
Metadata
Metadata
Assignees
Labels
No labels