react-playground-vscode
react-playground-vscode copied to clipboard
Can't get it to work with CSS a css file
Hi, I think this is a very useful idea for a plugin. Sadly I can't get it to run with importing a .css file.
Here is my Toggle.js
require('./Toggle.css')
import React from 'react';
export default class Toggle extends React.Component {
state = {}
render() {
return (
<div class="test">
hallo
</div >
);
}
}
And here is my Toggle.css:
.test{
color: red;
}
And here is the Error message:
<my_project>/public/components/basics/Toggle.css Module parse failed: <my_project>/public/components/basics/Toggle.css Unexpected token (1:0) You may need an appropriate loader to handle this file type. | .test{ | color: red; | } @ <my_project>/public/components/basics/Toggle.js 21:0-23 @ <my_project>/.react-playground/index.js @ multi (webpack)-dev-server/client?http://localhost:9123 <my_project>/.react-playground/index.js
Hi @matthiasp42 thanks for the report. css-loader has been added on 0.0.10 and this should work now