Skip to content

How can we provide content for specific links #145

Answered by meteorlxy
Mister-Hope asked this question in Q&A
Discussion options

You must be logged in to vote

If you want it anyway:

  // for vite
  if (app.env.isDev && app.options.bundler.endsWith('vite')) {
    app.options.bundlerConfig.viteOptions = require('vite').mergeConfig(
      app.options.bundlerConfig.viteOptions,
      {
        // ...
      }
    )
  }

  // for webpack
  if (app.env.isDev && app.options.bundler.endsWith('webpack')) {
    const currentBeforeDevServer = app.options.bundlerConfig.beforeDevServer

	app.options.bundlerConfig.beforeDevServer = (...args) => {
		// ...
		currentBeforeDevServer(...args)
	}
  }

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Mister-Hope
Comment options

Mister-Hope May 20, 2021
Collaborator Author

Answer selected by Mister-Hope
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants