Open AshleyGrant opened 6 years ago
Interestingly, it seems to work fine if I don't wrap it in PLATFORM.moduleName. Is that the expected behavior?
@AshleyGrant have you checked it with wp4? recently?
@AshleyGrant why not just import it directly and let webpack take care of it?
import 'nprogress/nprogress.css';
I'm submitting a bug report
"aurelia-bootstrapper": "^2.1.1",
"aurelia-webpack-plugin": "^2.0.0-rc.4",
Please tell us about your environment:
Operating System: Windows 10
Node Version: 8.9.1
NPM Version: 5.5.1
Aurelia CLI OR JSPM OR Webpack AND Version CLI 0.32.0
Browser: Chrome Latest, at least
Language: all
Current behavior:
@noView([PLATFORM.moduleName('nprogress/nprogress.css')])
fails with the following error:Simply using
import 'nprogress/nprogress.css';
in the same file works fine. Loading CSS withrequire
elements in a view works as well.Expected/desired behavior:
The above should work when
nprogress
has been installed as a dependency.noView
decorator to work.