Skip to content
This repository has been archived by the owner on Sep 25, 2023. It is now read-only.

webpack.config.js更新 #1

Open
NorviNS opened this issue Feb 23, 2017 · 0 comments
Open

webpack.config.js更新 #1

NorviNS opened this issue Feb 23, 2017 · 0 comments

Comments

@NorviNS
Copy link

NorviNS commented Feb 23, 2017

尝试了一下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'
-        }
     }
 }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant