Skip to content

dustinfreeman/bug-react-benchmark-css-import

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bug-react-benchmark-css-import

This is a minimal example showing css import issues I'm having with react-benchmark, which uses webpack. Please help!?

For normal development, I use yarn, and I can start the app successfully with:

$ yarn $ yarn start 

However, when I attempt to run the benchmark like so:

$ react-benchmark --debug src/test.tsx 

I get the following import error:

✖ Compiling bundle /Users/dustinfreeman/Documents/Code/bug-react-benchmark-css-import/src/index.css 1:5 Module parse failed: Unexpected token (1:5) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders > body { | font: 14px 'Century Gothic', Futura, sans-serif; | margin: 20px; @ /Users/dustinfreeman/Documents/Code/bug-react-benchmark-css-import/src/index.tsx 3:0-21 @ ./client.js 

I've tried a few variations to set the css loader webpack.config.js and I can't seem to get it to work.

About

Minimal example showing css import issues

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published