-
Notifications
You must be signed in to change notification settings - Fork 12k
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
3th party lib hammer keep referring to .map files when made production build #2713
Comments
Fixed in #2519 I believe. If you still have the same problem with the next release, let me know and I'll reopen. |
I updated to cli 1.0.0-beta.17 [image: Inline image 1] On Mon, Oct 17, 2016 at 6:31 PM, Filipe Silva [email protected]
|
this is in my angular-cli.json file: On Mon, Oct 17, 2016 at 8:22 PM, Stefan Aerts [email protected]
|
What does this mean? declaration in unreachable code should be dropped? On Mon, Oct 17, 2016 at 8:25 PM, Stefan Aerts [email protected]
|
Since #2519 didn't fix it for you I'll reopen. Can you give me exact repro steps to get this behaviour? If I start with a brand new CLI app, what do I need to do to see it? Your last three comments should have images I think, but none appeared here. |
1)I install hammerjs, so i have a folder node_modules/hammerjs
Do you see the picture above this line? So as you can see there is a
But as you can see in thsi picture below this line there is line in the [image: Inline image 2]
[image: image] Maybe its because its already minified? Kind Regards, On Tue, Oct 18, 2016 at 1:41 AM, Filipe Silva [email protected]
|
@stefanaerts I solved it by referencing the non-minified version of hammer. |
@devCrossNet Thats also gave a reference to a .map file in the dist/styles..bundle.js |
@stefanaerts you should be able to use both minified and un-minified versions in the scripts/styles array. I think this is a bug in how we process those files. Will look into it. |
@stefanaerts would you verify if you hit the issue with the latest CLI? If you do, would you share a minimal example on GitHub so we can reproduce it locally? |
Closing the issue due to inactivity. If the problem still exists in the latest version of the CLI, please open a new issue following the template and providing a minimal demo where we can reproduce it. Thanks! :-) |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
OS?
mac osx
Versions.
Repro steps.
The log given by the failure.
Mention any other details that might be useful.
When i do ng build --target=production --environment=prod
it keeps generating a reference to js.map file for hammer
Then when i do a refresh or redirect in the url i get this message:
Failed to parse SourceMap: https://ethnicfoods-b928a.firebaseapp.com/hammer.min.js.map
The text was updated successfully, but these errors were encountered: