Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The deleteSourceMaps execute too early? #3570

Open
Jayatubi opened this issue Dec 29, 2023 · 0 comments
Open

The deleteSourceMaps execute too early? #3570

Jayatubi opened this issue Dec 29, 2023 · 0 comments

Comments

@Jayatubi
Copy link

Jayatubi commented Dec 29, 2023

When run the npm command npm run package it calls ./.erb/scripts/clean.js first which would remove the entire dist folder. Then in the webpack.config.renderer.prod.ts this deleteSourceMaps call would do nothing.

However, after the above process a new .js.map would be generated in the new dist folder.

Does the deleteSourceMaps suppose to be called AFTER the new dist content generated?

https://github.com/electron-react-boilerplate/electron-react-boilerplate/blob/83b826fa9d810e26da7b5f17b4ed543e5f52bb17/.erb/configs/webpack.config.renderer.prod.ts#L19C10-L19C10

@Jayatubi Jayatubi changed the title The deleteSourceMaps execute too early. The deleteSourceMaps execute too early? Dec 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant