webpack.dll.config.js 404 B

123456789101112131415161718
  1. const path = require('path')
  2. const webpack = require('webpack')
  3. module.exports = {
  4. entry: {
  5. vendor: ['highcharts','@antv/x6','vue-router']
  6. },
  7. output: {
  8. path: path.join(__dirname, '../static'),
  9. filename: 'dll.[name].js',
  10. library: '[name]'
  11. },
  12. plugins: [
  13. new webpack.DllPlugin({
  14. path: path.join(__dirname, '../', '[name]-manifest.json'),
  15. name: '[name]'
  16. })
  17. ]
  18. }