Skip to content

Instantly share code, notes, and snippets.

@movii
Created June 17, 2018 09:05
Show Gist options
  • Save movii/7ecca75184e2153bb44f2ba096879fb0 to your computer and use it in GitHub Desktop.
Save movii/7ecca75184e2153bb44f2ba096879fb0 to your computer and use it in GitHub Desktop.
let path = require('path');
+ let VueLoaderPlugin = require('vue-loader/lib/plugin');
module.exports = {
mode: 'development',
entry: './src/js/app.js',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'bundle.js'
},
- resolve: {
- alias: {
- 'vue$': 'vue/dist/vue.esm.js'
- }
+ module: {
+ rules: [
+ {
+ test: /\.vue$/,
+ loader: 'vue-loader'
+ }
+ ]
},
devServer: {
publicPath: '/dist/',
contentBase: './',
compress: true,
port: 1333,
- }
+ },
+ plugins: [
+ new VueLoaderPlugin()
+ ]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment