Skip to content

Instantly share code, notes, and snippets.

@aderaaij
Created February 1, 2018 17:20
Show Gist options
  • Save aderaaij/591f80561bbc85996b4e767d4b478c65 to your computer and use it in GitHub Desktop.
Save aderaaij/591f80561bbc85996b4e767d4b478c65 to your computer and use it in GitHub Desktop.

Revisions

  1. aderaaij revised this gist Feb 1, 2018. No changes.
  2. aderaaij created this gist Feb 1, 2018.
    35 changes: 35 additions & 0 deletions webpack.config.js
    Original 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',
    },
    },
    };