Skip to content
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

CSS not being extracted when using @import #1

Closed
peripateticus opened this issue Nov 8, 2018 · 1 comment
Closed

CSS not being extracted when using @import #1

peripateticus opened this issue Nov 8, 2018 · 1 comment
Assignees

Comments

@peripateticus
Copy link
Member

Getting below error as a result of an @import ... in <style> section:

watched directories: 
webpack config: ...frontend/node_modules/@rei/vunit/webpack.config.js
specGlob: ./test/**/*.spec.js
--------------------------------
Setting up JSDOM...OK.
 WEBPACK  Compiling...
 WEBPACK  Compiled successfully in 1090ms
 MOCHA  Testing...
 RUNTIME EXCEPTION  Exception occurred while loading your tests

.../frontend/node_modules/@rei/cdr-icon/dist/cdr-icon.css:1
(function (exports, require, module, __filename, __dirname) { .cdr-icon-sprite{display:none}.cdr-icon_1\.0\.0{display:inline-block;vertical-align:middle;-ms-flex:0 0 auto;flex:0 0 auto;width:2.4rem;height:2.4rem;fill:#292929}.cdr-icon--sm_1\.0\.0{width:1.6rem;height:1.6rem}.cdr-icon--lg_1\.0\.0{width:3.2rem;height:3.2rem}.cdr-icon--inherit-color_1\.0\.0{fill:inherit}
                                                              ^

SyntaxError: Unexpected token .
    at createScript (vm.js:80:10)
    at Object.runInThisContext (vm.js:139:10)
    at Module._compile (module.js:616:28)
    at Module._extensions..js (module.js:663:10)
    at Object._module2.default._extensions.(anonymous function) [as .js] (..../frontend/node_modules/mocha-webpack/lib/util/registerRequireHook.js:140:62)
@peripateticus
Copy link
Member Author

Fixed in #2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant