Closed jannisg closed 9 years ago
I've got the same issue, looks like it's caused by e146559.
Before: loader.baseURL.substr('file:'.length)
After: address.replace(/^file:\/+/, '')
Notice that regular expression has slash right after file:
? Thanks to it, paths on Windows don't get file:
removed, because they have a drive letter in it's place:
file:D:/dev/asyst/development/app/asyst/style.css
Fixed by the pull request https://github.com/systemjs/plugin-css/pull/44 of my colleague @robcleghorn.
We have a standard
bundle-sfx
task running to get a production bundle out of our JSPM/SystemJS driven project which works great on Macs however seems to have started failing on Windows computers now.Trying to track this down seems to point at the origin of the error coming from the
clean-css
module.The breaking import statement in out
app.js
file is the standard:import 'styles.css!';
(also triedimport './styles.css!';
to no avail)The file is available at the desired/expected location (process runs fine on Mac) but the following error occurs on Windows computers/build servers:
The project's
package.json
is below: