aurelia / webpack-plugin

A plugin for webpack that enables bundling Aurelia applications.
MIT License
90 stars 36 forks source link

Using @noView with css #120

Open ghost opened 7 years ago

ghost commented 7 years ago

I'm submitting a bug report

Please tell us about your environment:

Current behavior: when I do @noview([PLATFORM.moduleName('nprogress/nprogress.css')]) I get: Failed loading required CSS file: nprogress/nprogress.css in the browser.

Expected/desired behavior: I expect the browser to load the CSS file

bugtest.zip aurelia-car.zip

JeroenVinke commented 7 years ago

This is used in the contactmanager tutorial, which works when the Aurelia CLI bundler is used. Loading the same css file using or import in webpack works fine

jods4 commented 7 years ago

This is most likely because your css loaders are not set up properly. There is an explanation here: https://github.com/aurelia/webpack-plugin/wiki/CSS-doesn't-load