webpack.config.js 396 B

123456789101112131415161718192021222324
  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. target: 'node',
  11. module: {
  12. rules: [
  13. {
  14. test: /\.svg$/,
  15. loader: 'svg-sprite-loader'
  16. }
  17. ]
  18. }
  19. });