webpack.prod.js 444 B

1234567891011121314151617181920212223
  1. const { merge } = require("webpack-merge");
  2. const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
  3. const common = require("./webpack.common.js");
  4. module.exports = merge(common, {
  5. mode: "production",
  6. devtool: "source-map",
  7. output: {
  8. publicPath: "/build/"
  9. },
  10. resolve: {
  11. alias: {
  12. vue: "vue/dist/vue.min.js",
  13. styles: "src/styles"
  14. }
  15. },
  16. plugins: [
  17. new BundleAnalyzerPlugin({
  18. analyzerMode: "static"
  19. })
  20. ]
  21. });