webpack.config.js (1059B)
1 const path = require('path'); 2 const VueLoaderPlugin = require('vue-loader/lib/plugin'); 3 const VuetifyLoaderPlugin = require('vuetify-loader/lib/plugin'); 4 5 module.exports = { 6 entry: "./src/app.js", 7 output: { 8 path: path.resolve(__dirname, "./dist/"), 9 filename: "lipre.js" 10 }, 11 module: { 12 rules: [ 13 {test: /\.js$/, use: 'babel-loader'}, 14 {test: /\.vue$/, use: 'vue-loader'}, 15 { 16 test: /\.s(c|a)ss$/, 17 use: [ 18 'vue-style-loader', 19 'css-loader', 20 { 21 loader: 'sass-loader', 22 options: { 23 implementation: require('sass'), 24 sassOptions: { 25 indentedSyntax: true 26 }, 27 }, 28 } 29 ], 30 }, 31 ], 32 }, 33 plugins:[ 34 new VueLoaderPlugin(), 35 new VuetifyLoaderPlugin() 36 ] 37 }