I am currently working on a SSR React App using Webpack3 and Babel6. However, when I launch the server, it is not able to locate any css file (Error: Cannot find module './file.css').
Here is an overview of my current folder structure:
src/
|-components/
|-App/
|-App.css
|-App.jsx
App.jsx
....
import './App.css';
....
webpack.config.js
....
module.exports: { loaders: [
....
{
test: /\.css$/,
loader: ['style-loader', 'css-loader'], // I have already installed the loaders and added them to package.json under devDependencies
include: path.join(__dirname, 'src'),
exclude: /node_modules/
}
....
]}
Any suggestions or solutions to this issue?