I'm creating a new Chrome extension. I introduced Parcel bundler for module bundling and TypeScript support.
I want build
/src
/background-script
index.ts
/browser-action
index.html
index.ts
/content-script
index.ts
into
/dist
/background-script
index.js
/browser-action
index.html
index.js
/content-script
index.js
/src/index.html imports index.ts in the same directory
parcel watch src/background-script/index.ts src/content-script/index.ts src/browser-action/index.html --no-hmr --out-dir dist --public-url .
This will produce following output:
/dist
/background-script
index.js
/browser-action
index.html
/content-script
index.js
browser-action.***.js