Advertisement
epitaque_

Untitled

Nov 20th, 2017
389
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var ExtractTextPlugin = require("extract-text-webpack-plugin");
  2.  
  3. module.exports = {
  4.     entry: './src/main.js',
  5.     output: {
  6.         filename: 'dist/bundle.js'
  7.     },
  8.     resolve: {
  9.         alias: {
  10.             vue: 'vue/dist/vue.js',
  11.             vueRouter: 'vue-router/dist/vue.js'
  12.         }
  13.     },
  14.     module: {
  15.         loaders: [
  16.             {
  17.                 test: /\.css$/,
  18.                 loader: ExtractTextPlugin.extract("style-loader", "css-loader")
  19.             },
  20.         ]
  21.     },
  22.     plugins: [
  23.         new ExtractTextPlugin("[name].css")
  24.     ]
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement