Use the "outputDir" option instead. Error
See original GitHub issueVersion
3.0.0-beta.15
Reproduction link
Steps to reproduce
Set up vue.config.js like this:
module.exports = {
configureWebpack:{
output: {
path: '../test-folder/',
filename: '[name].js',
publicPath: '/'
},
}
}
And run npm run build
What is expected?
To get build files in the test-folder
folder
What is actually happening?
I am getting the: Configuration Error: Avoid modifying webpack output.path directly. Use the "outputDir" option instead.
Should have been fixed in 3.0.0-beta.10
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:9
Top Results From Across the Web
How to direct vue-cli to put built project files in different ...
path, you should use the outputDir option in vue.config.js; instead of modifying output.publicPath, you should use the baseUrl option in vue.
Read more >Configuration Reference | Vue CLI
Always use outputDir instead of modifying webpack output.path . assetsDir #. Type: string. Default: ''. A directory (relative to ...
Read more >Configuration | Vue CLI Plugin Electron Builder - GitHub Pages
To see available options, check out Electron Builder Configuration Options (opens new ... You can use the --dest argument to change the output...
Read more >Error: no such option: --o-output-dir - QIIME 2 Forum
Hi there, I'm trying to run my alpha/beta diversity analysis using core-metrics-phylogenetic command. Here is my script: qiime diversity ...
Read more >Output - webpack
devtoolFallbackModuleFilenameTemplate is used instead for these modules. output.devtoolNamespace. string. This option determines the module's namespace used ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This works for me.
const path = require(‘path’);
module.exports = { lintOnSave: true, outputDir: path.resolve(__dirname, ‘…/priv/static’), };
changing it within
vue ui
created the file below which started working with custom directory. Haven’t debugged yet which one helped.