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
constfileNames='build/[name].js'exportdefault{output: {entryFileNames: fileNames,chunkFileNames: fileNames,// Other options}// Other options}
However, all the assets (for example generated CSS files) will be placed near your generated html file. To place these files to the build subdir you can define the output.assetFileNames as function:
constfileNames='build/[name].js'exportdefault{output: {entryFileNames: fileNames,chunkFileNames: fileNames,assetFileNames({fileName}){returnfileName!=='index.html' ? ('build/'+fileName) : fileName}// Other options}// Other options}
Structure - wanted:
/src/template.html
/public/index.html
/public/build/bundle.js
/public/build/bundle.css
Structure - given:
/src/template.html
/public/build/index.html
/public/build/bundle.js
/public/build/bundle.css
In other words, this script stores index.html in the same folder as the bundle.js but I would like to store it one folder up. How would I set this?
The text was updated successfully, but these errors were encountered: