Created
February 1, 2018 17:20
-
-
Save aderaaij/591f80561bbc85996b4e767d4b478c65 to your computer and use it in GitHub Desktop.
Revisions
-
aderaaij revised this gist
Feb 1, 2018 . No changes.There are no files selected for viewing
-
aderaaij created this gist
Feb 1, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,35 @@ const webpack = require('webpack'); const path = require('path'); module.exports = { entry: './src/main.js', output: { path: path.resolve(__dirname, './build'), filename: 'bundle.js', }, module: { rules: [ { test: /\.js$/, exclude: /(node_modules|bower_components)/, use: { loader: 'babel-loader', options: { presets: ['@babel/preset-env'], }, }, }, { test: /\.vue$/, use: { loader: 'vue-loader', }, }, ], }, resolve: { alias: { vue: 'vue/dist/vue.js', }, }, };