Replies: 1 comment
-
I have the same topic, a separate config.js which I want to make available in my js code but should be avoided to minify and implement together with other code in one single js file - config.js should be stay alone like the dev phase |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm little bit struggling now with replicate my construct from parcel v1, where i used parcel-plugin-html-externals for exclude js files from being bundled and copy script for copy that file to dist folder every time I done a build. But now this functionality does not seem to work, so is there an alternative in version 2 already directly part of it?
What i finally want to make is flag one js file for not being bundled and use it for some configurations variables, when someting who do not understand javascript want to make some changes at build production version of app.
My code from v1:
project dir
|- config
¯¯|- config.js
|- css
|- js
¯¯|- index.js
|- index.html
|- package.json
index.html
package.json
And index.html inside
dist
folderBeta Was this translation helpful? Give feedback.
All reactions