Skip to content

mdrohmann/atomic-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

atomic-plugin

Webpack Plugin for compiling atomic css

The code is mainly copied from atomic-loader. Thank you Tom Wu for your work.

I just believe that the solution as a Plugin is more suitable for a webpack configuration, as the generated atomic stylesheet file can then be handled as a webpack asset. So, when you use, the webpack-dev-server, it gets served as well.

Install

$ npm install atomic-plugin --save

Usage

Add the plugin to your webpack config:

plugins: [
      new AtomicPlugin('atomic.css', 'path/to/atomCssConfig.js'),
    ]

For more information on the atomizer, visit the webpage: yahoo/atomizer.

TODO

  • Figure out, how to inject a [hash] value into the atomic.css output.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published