Browse Source

Possible fix to webpack configuration issues

theflametrooper 7 years ago
parent
commit
b2900eb802
2 changed files with 8 additions and 13 deletions
  1. 5 0
      .babelrc
  2. 3 13
      frontend/webpack.config.js

+ 5 - 0
.babelrc

@@ -0,0 +1,5 @@
+{
+	"presets": ["es2015"],
+	"plugins": ["transform-runtime"],
+	"comments": false
+}

+ 3 - 13
frontend/webpack.config.js

@@ -8,17 +8,12 @@ module.exports = {
 		filename: 'bundle.js'
 	},
 	module: {
-		preLoaders: [
-			{
-				test: /\.vue$/,
-				loader: 'eslint',
-				exclude: /node_modules/
-			}
-		],
 		loaders: [
 			{
+				enforce: "pre",
 				test: /\.vue$/,
-				loader: 'vue'
+				loader: 'vue',
+				exclude: /node_modules/
 			},
 			{
 				test: /\.js$/,
@@ -36,10 +31,5 @@ module.exports = {
 			sass: 'style!css!sass?indentedSyntax',
 			scss: 'style!css!sass'
 		}
-	},
-	babel: {
-		presets: ['es2015'],
-		plugins: ['transform-runtime'],
-		comments: false
 	}
 };