experiments

All kinds of coding experiments
Log | Files | Refs | Submodules

webpack.config.js (534B)


      1 const glob = require('glob');
      2 const path = require('path');
      3 const VueLoaderPlugin = require('vue-loader/lib/plugin');
      4 
      5 module.exports = {
      6     entry: "./src/app.js",
      7     output: {
      8         path: path.resolve(__dirname, "./dist/"),
      9         filename: "app.js"
     10     },
     11     module: {
     12         rules: [
     13             {test: /\.js$/, use: 'babel-loader'},
     14             {test: /\.vue$/, use: 'vue-loader'},
     15             {test: /\.css$/, use: ['vue-style-loader', 'css-loader']},
     16         ]
     17     },
     18     plugins:[
     19         new VueLoaderPlugin()
     20     ]
     21 };