webpack.config.js 630 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. options: {
  17. loaders: {
  18. sass: 'style-loader!css-loader!sass-loader?indentedSyntax',
  19. scss: 'style-loader!css-loader!sass-loader'
  20. }
  21. }
  22. },
  23. {
  24. test: /\.js$/,
  25. loader: 'babel-loader',
  26. exclude: /node_modules/
  27. },
  28. {
  29. test: /\.scss$/,
  30. loader: 'css-loader!sass-loader'
  31. }
  32. ]
  33. }
  34. };