-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
More options for baseUrl and outputDir settings in vue.config.js #1608
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
Comments
If you need to adjust filename just use webpack configurations. |
@yyx990803 I'm not following your recommendation. I have a similar need and am getting outputDir is empty on build. Are you suggesting to use vue > inspect to eject and edit that way? |
@briancampo i ended up editing |
BLUF: could this be a RC3 (using RC3 here as well) issue as in #1496 comment this morning @Akryum and @taivu, that is what I thought but am running into avoid modifying output directly error with the below. Also tried editing the config.plugins["VueLoaderPlugin"] with no luck either
@taivu Sorry to be so dense; could you post what you ended up with |
@briancampo This is what I ended up with for my needs. module.exports = {
configureWebpack: (config) => {
config.output.filename = 'myApp.js'
config.output.chunkFilename = '[name]'
process.env.NODE_ENV === 'production'
? config.optimization.splitChunks.cacheGroups.vendors.name = 'vendors'
: console.log(config) // dev does not have `optimization.splitChunks`
},
} |
Uh oh!
There was an error while loading. Please reload this page.
What problem does this feature solve?
allowing absolute url's and setting output file name
What does the proposed API look like?
from:
to:
The text was updated successfully, but these errors were encountered: