We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am using webpack 3 This is my config
{ test: /\.css$/, exclude: /node_modules/, include: path.join(__dirname, 'client'), use: ['style-loader','css-loader',{ loader:'postcss-loader', options: { config: { path: path.join(__dirname, 'postcss.config.js') } } }] },
To make sure it actually picks up the config I put this in the postcss.config.js file
postcss.config.js
module.exports = { ]wepfowewepjwegpjo parser: 'sugarss', plugins: { 'postcss-import': {}, 'postcss-cssnext': {}, 'autoprefixer': {}, 'postcss-focus': {}, 'postcss-nested': {}, 'postcss-url': {}, 'cssnano': {} } }
This should never work as it isn't valid syntax.
The problem is it doesn't even throw an error when running webpack. The config file is located in the project root btw.
My css files are in client/css and when looking inside bundle.js I can see
client/css
bundle.js
exports.push([module.i, ":root {\n --brand: #EB7C5C;\n --text: #424242 ....
Which is the contents of my style.css file, so it does get picked up.
style.css
The styles are added to my index.jsx file as follows:
index.jsx
import './css/flexboxgrid.css' import './css/font-awesome.css' import './css/style.css'
Any idea what I am missing?
The text was updated successfully, but these errors were encountered:
postcss-load-config #91 Tracking Issue (schema-validation). It should warn about incorrect config via postcss-load-config.
schema-validation
postcss-load-config
Sorry, something went wrong.
The loader will fallback to { plugins: [], options: {} } and simply not run any PostCSS transforms then atm
{ plugins: [], options: {} }
No branches or pull requests
I am using webpack 3
This is my config
To make sure it actually picks up the config I put this in the
postcss.config.js
fileThis should never work as it isn't valid syntax.
The problem is it doesn't even throw an error when running webpack. The config file is located in the project root btw.
My css files are in
client/css
and when looking insidebundle.js
I can seeWhich is the contents of my
style.css
file, so it does get picked up.The styles are added to my
index.jsx
file as follows:Any idea what I am missing?
The text was updated successfully, but these errors were encountered: