Closed goldsteinr closed 8 years ago
I suggest add postcss-shopify-settings-variables at the beginning of processors and try again. change var processors to
var processors = [
shopifySettings,
autoprefixer,
cssnano,
];
Same errors. It happens when i try to compile the scss. Without compiling, it works.
try to remove this line
.pipe(sass().on('error', sass.logError))
shopify will compile sass/scss files for you, you don't need compile it with gulp by yourself.
Im using @import
s. Shopify dont understand those... I need to compile
before sending it to the assets folder. No?
2016-01-22 0:08 GMT-02:00 xingkui wang notifications@github.com:
try to remove this line
.pipe(sass().on('error', sass.logError))
shopify will compile sass/scss files for you, you don't need compile it with gulp by yourself.
— Reply to this email directly or view it on GitHub https://github.com/bit3725/postcss-shopify-settings-variables/issues/1#issuecomment-173777741 .
Ricardo Goldstein Telefone: (21) 99711-9221 Email: goldstein.ricardo@gmail.com
that's the painpoint when use sass/scss in shopify. if the main reason use @import is combining multiple css files to single one for shopify, what i did was used plugin like gulp-concat-css to combine them firstly, then use postcss to compile for shopify.
the problem is in the autoprefixer and css nano..
its possible to use shopify-settings with {% if %} and {% else %}?
i don't think use if and else in css is a good practise, i will use them in js or liquid files to load different class name instead.
good point. Thanks! :+1:
Getting error when trying to use with gulp. This is my task:
Error: