Comments (6)
Thank you solved :)
from postcss-load-plugins.
$ROOT
|– src
| |– imports
| | |– import.pcss
| |– index.pcss
|
|– gulpfile.js
|– postcss.config.js
|– package.json
postcss.config.js
module.exports = (ctx) => ({
plugins: {
'postcss-plugin': {...options}
}
})
gulpfile.js
export const pcss = (done) => {
return gulp.src(`${pkg.paths.elements}/**/*.pcss`)
.pipe(postcss())
.pipe(gulp.dest('./'));
done();
}
Should work out-of-the-box
from postcss-load-plugins.
I also need to require/import postcss-load-plugins
inside the gulpfile.babel.js
?
from postcss-load-plugins.
You don't need to install anything. gulp-postcss
has postcss-load-config
as a direct dependency, that's what I meant by out-of-the-box 😛
from postcss-load-plugins.
Ah so just putting the postcss.config.js
file all plugins will be auto-imported with relative
configs? :)
from postcss-load-plugins.
Ah so just putting the postcss.config.js file all plugins will be auto-imported with relative
configs? :)
Yep :)
from postcss-load-plugins.
Related Issues (20)
- autoprefixer-core is deprecated HOT 1
- I am too stupid or plugin is too complex HOT 14
- An in-range update of postcss-sprites is breaking the build 🚨 HOT 1
- An in-range update of postcss is breaking the build 🚨 HOT 1
- An in-range update of standard is breaking the build 🚨 HOT 1
- Array.isArray(config.plugins) => config.plugins.filter(Boolean)
- config.file
- An in-range update of cssnano is breaking the build 🚨 HOT 1
- An in-range update of cosmiconfig is breaking the build 🚨 HOT 1
- An in-range update of coveralls is breaking the build 🚨
- An in-range update of postcss is breaking the build 🚨
- An in-range update of postcss-sprites is breaking the build 🚨
- An in-range update of postcss-cssnext is breaking the build 🚨
- Load plugins in cwd HOT 10
- Doesn’t work with postcss-cli for some reason HOT 1
- Error on npm run production HOT 1
- An in-range update of postcss is breaking the build 🚨 HOT 4
- Nothing happens when config is missing HOT 9
- Getting started with postcss.config.js HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from postcss-load-plugins.