webpack.config.js 608 B

1234567891011121314151617181920212223242526272829303132333435
  1. const webpack = require('webpack');
  2. module.exports = {
  3. devtool: 'eval-source-map',
  4. entry: './main.js',
  5. output: {
  6. path: __dirname + '/build/',
  7. filename: 'bundle.js'
  8. },
  9. module: {
  10. loaders: [
  11. {
  12. enforce: 'pre',
  13. test: /\.vue$/,
  14. loader: 'vue-loader',
  15. exclude: /node_modules/
  16. },
  17. {
  18. test: /\.js$/,
  19. loader: 'babel-loader',
  20. exclude: /node_modules/
  21. },
  22. {
  23. test: /\.scss$/,
  24. loader: 'css-loader!sass-loader'
  25. }
  26. ]
  27. },
  28. vue: {
  29. loaders: {
  30. sass: 'style-loader!css-loader!sass-loader?indentedSyntax',
  31. scss: 'style-loader!css-loader!sass-loader'
  32. }
  33. }
  34. };