PostCSS does not read and not print file, from folder "src" to "dest"
See original GitHub issueI installed grunt-postcss and autoprefixer plug-in, but when I try to configure PostCSS with metod of the plug-in load-grunt-config, Autoprefixer and other plug-in, do nothing and do not have allert or error.
This is output from console:
$ grunt postcss
Running "postcss:postcss" (postcss) task
Done.
When I configure grunt in the standard way, PostCSS it works correctly.
This is my postcss.js file, put inside of grunt folder:
module.exports = {
postcss: {
options: {
processors: [
require('autoprefixer')(),
]
},
dist: {
src: '<%= project.stylesheets %>/src/main.css',
dest: '<%= project.stylesheets %>/dest/main.css'
}
}
};
You have no idea how to solve it
Thanks for your help
Mario
Issue Analytics
- State:
- Created 7 years ago
- Comments:11
Top Results From Across the Web
PostCSS does not read and not print file, from folder "src" to ...
When I configure grunt in the standard way, PostCSS it works correctly. This is my postcss.js file, put inside of grunt folder:.
Read more >Grunt with PostCSS does not read and not print file, from folder "src ...
No information is available for this page.
Read more >PostCSS Plugin Guidelines
Document your plugin in English. PostCSS plugins must have their README.md wrote in English. Do not be afraid of your English skills, as...
Read more >Output Management - webpack
Now run an npm run build and inspect the /dist folder. If everything went well you should now only see the files generated...
Read more >What is PostCSS? How to Use Plugins to Automate CSS Tasks
PostCSS is a Node.js tool that transforms your styles using JavaScript plugins. It generates more downloads per week on NPM than other CSS ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @immagimario, ok I’ve checked your https://github.com/immagimario/start-web-site and found a reason: you have mistake in your
postcss.js
config file, please removedist
, so it should look something like this:Regards, Anatoliy
Hi @immagimario,
please, run
grunt postcss --debug
,grunt --config-debug
and provide output of both commands.Regards, Anatoliy