Skip to content

Instantly share code, notes, and snippets.

@emilbayes
Last active February 3, 2016 10:12
Show Gist options
  • Save emilbayes/3645f8e70d1a6a8e4f0a to your computer and use it in GitHub Desktop.
Save emilbayes/3645f8e70d1a6a8e4f0a to your computer and use it in GitHub Desktop.
@import 'normalize.css';
require('./index.css')
{
"name": "@data/css",
"version": "0.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "browserify -p [./plugin.js -o bundle.css] -o bundle.js index.js"
},
"author": "",
"license": "ISC",
"dependencies": {
"browserify": "^12.0.1",
"css-modulesify": "^0.16.1",
"normalize.css": "^3.0.3",
"postcss-import": "^8.0.2",
"postcss-reporter": "^1.3.1"
}
}
// Browserify plugin
module.exports = function (browserify, options) {
return browserify.plugin(require('css-modulesify'), Object.assign({
after: [require('postcss-import'), require('postcss-reporter')]
}, options))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment