JSPM

atomic-plugin

0.1.2
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • 0
    • Score
      100M100P100Q20788F
    • License MIT

    Webpack plugin for compiling atomic css

    Package Exports

    • atomic-plugin

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (atomic-plugin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    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.