Last active
February 3, 2016 10:12
-
-
Save emilbayes/3645f8e70d1a6a8e4f0a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import 'normalize.css'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('./index.css') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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