webpack.config.js 421 B

12345678910111213141516171819202122232425
  1. const path = require('path');
  2. const merge = require('deepmerge');
  3. const baseConfig = require('../base-webpack.config');
  4. module.exports = merge(baseConfig, {
  5. context: __dirname,
  6. entry: './main',
  7. output: {
  8. path: path.resolve(__dirname, 'build')
  9. },
  10. module: {
  11. rules: [
  12. {
  13. test: /\.svg$/,
  14. use: [
  15. 'svg-sprite-loader',
  16. 'svgo-loader'
  17. ]
  18. }
  19. ]
  20. }
  21. });