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

Specify a standard filename under terserOptions #8347

Open
resting opened this issue Jan 21, 2020 · 1 comment
Open

Specify a standard filename under terserOptions #8347

resting opened this issue Jan 21, 2020 · 1 comment

Comments

@resting
Copy link

resting commented Jan 21, 2020

Is your proposal related to a problem?

The current npm run build extracts the License comments and put them in a file that ends in a non standard extension .LICENCSE. This causes problem for servers like IIS to return 404 for request to the file. It also causes serviceWorker to break due to the file not being loaded.

Describe the solution you'd like

Specify a standard name under terserOptions in webpack.config.js, so that it ends in .js.

Not tested, should be something like the below:

filename: [file]
@ianschmitz
Copy link
Contributor

Sounds reasonable to use a standard extension.

The .js extension probably isn't the best option. I think .txt would work nicely?

@ianschmitz ianschmitz added this to the 3.4 milestone Feb 14, 2020
@iansu iansu modified the milestones: 3.4, 3.5 Feb 14, 2020
@raix raix modified the milestones: 5.1, 5.x Dec 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants