question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use the "outputDir" option instead. Error

See original GitHub issue

Version

3.0.0-beta.15

Reproduction link

https://codesandbox.io/s/vue

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:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:9

github_iconTop GitHub Comments

14reactions
kamidevcommented, Aug 5, 2018

This works for me.

const path = require(‘path’);

module.exports = { lintOnSave: true, outputDir: path.resolve(__dirname, ‘…/priv/static’), };

3reactions
borantulacommented, Feb 10, 2019

changing it within vue ui created the file below which started working with custom directory. Haven’t debugged yet which one helped.

module.exports = {
    publicPath: undefined,
    outputDir: '../public/site/dist',
    assetsDir: undefined,
    productionSourceMap: undefined,
    parallel: undefined,
    css: undefined
}
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found