Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better handling of publicPath: 'auto' #7005

Merged
merged 7 commits into from Mar 22, 2022
Merged

Commits on Feb 21, 2022

  1. Fix bug for configureWebpack.output = 'auto'

    For module-federation need to use output auto
    ```javascript
    const { defineConfig } = require('@vue/cli-service')
    const webpack = require('webpack')
    
    module.exports = defineConfig({
      configureWebpack: {
        output: {
          publicPath: 'auto', // <- ERROR: Avoid modifying webpack output.publicPath directly. Use the "publicPath" option instead.
        },
        optimization: {
          splitChunks: false,
        },
        plugins: [
          new webpack.container.ModuleFederationPlugin({
            name: 'vue_cli_demo',
            filename: 'remoteEntry.js',
            exposes: {
              './HelloWorld.vue': './src/components/HelloWorld.vue',
            },
            shared: {
              vue: {
                singleton: true,
              },
            },
          }),
        ],
      },
      transpileDependencies: true
    })
    AndreiSoroka committed Feb 21, 2022
    Copy the full SHA
    64933b2 View commit details
    Browse the repository at this point in the history

Commits on Feb 25, 2022

  1. fixed prepareURLs

    AndreiSoroka committed Feb 25, 2022
    Copy the full SHA
    139e693 View commit details
    Browse the repository at this point in the history
  2. Revert "Fix bug for configureWebpack.output = 'auto'"

    This reverts commit 64933b2.
    AndreiSoroka committed Feb 25, 2022
    Copy the full SHA
    970ade9 View commit details
    Browse the repository at this point in the history
  3. updated serve.js

    AndreiSoroka committed Feb 25, 2022
    Copy the full SHA
    4e876b8 View commit details
    Browse the repository at this point in the history

Commits on Mar 18, 2022

  1. Copy the full SHA
    de71144 View commit details
    Browse the repository at this point in the history
  2. support publicPath auto

    AndreiSoroka committed Mar 18, 2022
    Copy the full SHA
    e2cf91a View commit details
    Browse the repository at this point in the history
  3. fix: eslint

    AndreiSoroka committed Mar 18, 2022
    Copy the full SHA
    e9c4080 View commit details
    Browse the repository at this point in the history