A
A
Anton Izmailov2016-02-19 10:28:43
css
Anton Izmailov, 2016-02-19 10:28:43

Webpack and Local CSS - how to make friends?

Good time everyone!
There is a problem that I can not overcome for the 2nd day in a row.
The problem is the following - when I write in the React component

const Styles = require('../_components/styles/workers.css');

connection as follows, then webpack refuses to build the project swearing at the 1st character of the 1st line of the css file.
Its content:
.test{
color: red;
}

So the question is - has anyone experienced this? And how did you decide?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bromzh, 2016-02-19
@bromzh

loader css and styles specified in the webpack config?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question