webpack.config.js 573 B

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