dojo / cli-build-app

Command for building Dojo applications
Other
9 stars 32 forks source link

Dist-mode CSS source maps are empty #261

Closed rorticus closed 5 years ago

rorticus commented 5 years ago

Bug

It appears that CSS source maps are empty when building an app in dist mode. This can be easily seen by creating a new app via cli-create-app, and running dojo build. The resulting main.xxx.bndle.css file will look something like this,

{"version":3,"sources":[],"names":[],"mappings":"","file":"main.38f9fb424803b983dcc8.bundle.css","sourceRoot":""}

You can see that it is missing the juicy parts. CSS source maps seem OK when built in development mode (dojo build -m dev).

Package Version: 5.0.0

rorticus commented 5 years ago

After some cursory investigation, it looks like the problem might be BannerPlugin. If you simply comment out BannerPlugin from dist.config.ts and rebuild, the source maps look fine.