Fix for Penetration test _ Session and cookie management
[vid.git] / vid-webpack-master / processCss.js
1 const next = require('postcss-cssnext');
2 const modules = require('postcss-modules');
3 const postcss = require('postcss');
4
5 const processCss = function(file, done) {
6   postcss([
7     next,
8     modules({
9       getJSON: function(filename, json) {
10         file.rename(file.path + '.json')
11         done(JSON.stringify(json))
12       }
13     })
14   ]).process(file.content, {
15     from: file.path,
16     to: file.path
17   }).catch(function(err) {
18     throw err
19   })
20 }