Closed pajinev closed 4 years ago
Are you getting any errors?
Yes.... "require is not a function" with old version of postcss-em-media-query v. 2.0.0 works fine... with new version 3.0.0 have error :(
C-lodder, pls is any ways to install your plugin to root directory node_modules? (jit grunt is very slow with static mappings. :(
The install path is managed by NPM. I've forked the repo and namespaced the package with @lodder
, so it will install in that sub-directory.
Jit Grunt was last published 5 years ago and looks like it's no longer maintained.
I understand....can we look in postcss-em-media-query pls?
I will have a test with it later on today after work
you are the top!
I've run some tests and it's working absolutely fine:
const { default: postcssEmMediaQuery } = require('postcss-em-media-query')
grunt.initConfig({
postcss: {
mediaquery: {
options: {
processors: postcssEmMediaQuery
},
src: 'path/to/file/mediaquery.css',
dest: 'dist/style.css'
},
},
});
Closing as the solution above works
Maybe i don´t know how to use it :( Sorry :(
Config jit-grunt and Load-config