You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in the example project, outputDir and assetsDir are defined in vue.config.js
build the project with npm run build and browse the web directory: js files are copied in the assets/ subdirectory
build the project with npm run watch (which is only an alias for vue-cli-service build --watch in the package.json) and browse the web directory: js files are copied at the root of the directory, ignoring the assetsPath option of the vue.config.js
What is expected?
assets are copied in the directory defined by the assetsPath option from the vue.config.js file
What is actually happening?
assets are copied in the directory defined by the outputPath directory, ignoring the assetsPath option
In my real-world use case, the html files are templates for a server-side application. In this application, assets need to be in a subfolder in order to be considered as assets by our server.
Without it, I need to build for production, making debugging more difficult.
The text was updated successfully, but these errors were encountered:
BREAKING CHANGE:
Changing directory strcuture, though now becoming more intuitive, may
still break users' workflows, so it's considered a breaking change.
Fixes#4215.
Fixes#3767.
Fixes#4234
Version
3.5.5
Reproduction link
https://github.com/halfpastfive/assetspath
Environment info
Steps to reproduce
in the example project, outputDir and assetsDir are defined in vue.config.js
build the project with
npm run build
and browse theweb
directory: js files are copied in theassets/
subdirectorybuild the project with
npm run watch
(which is only an alias forvue-cli-service build --watch
in the package.json) and browse theweb
directory: js files are copied at the root of the directory, ignoring theassetsPath
option of the vue.config.jsWhat is expected?
assets are copied in the directory defined by the
assetsPath
option from the vue.config.js fileWhat is actually happening?
assets are copied in the directory defined by the outputPath directory, ignoring the
assetsPath
optionIn my real-world use case, the html files are templates for a server-side application. In this application, assets need to be in a subfolder in order to be considered as assets by our server.
Without it, I need to build for production, making debugging more difficult.
The text was updated successfully, but these errors were encountered: