Epitech's Blih Repository Manager

webpack.config.js 671B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. var webpack = require('webpack');
  2. module.exports = {
  3. entry: './app/index',
  4. module: {
  5. loaders: [
  6. {
  7. include: /app/,
  8. loader: 'babel',
  9. test: /\.js$/
  10. },
  11. {
  12. include: /app/,
  13. loaders: ['style', 'css', 'sass'],
  14. test: /\.scss$/
  15. }
  16. ]
  17. },
  18. output: {
  19. filename: 'application.js',
  20. path: './public'
  21. },
  22. plugins: [
  23. new webpack.DefinePlugin({
  24. 'process.env': {
  25. NODE_ENV: '"production"'
  26. }
  27. })
  28. ],
  29. resolve: {
  30. extensions: ['', '.js'],
  31. modulesDirectories: ['app', 'node_modules'],
  32. root: __dirname
  33. },
  34. sassLoader: {
  35. includePaths: ['app']
  36. }
  37. };