1.0.1 • Published 7 years ago

zyncc_style v1.0.1

Weekly downloads
1
License
ISC
Repository
-
Last release
7 years ago

Zyncc style

This exposes the basic CSS of Zyncc. It can be used like this in your main js file:

require('zyncc_style');
require('./index.pcss'); // the main styling file of your project

Some PCSS variables included in this package (variables.js) can also be exported to the rest of your CSS files (in the webpack2 flavour):

var cssSettings = require('zyncc_style/variables.js');

module.exports = function(debug) {
var config = {
    /* ... */
    module: {
        loaders: [
            /* ... */
            {
                test: /\.pcss$/,
                use: [
                    'style-loader',
                    { loader: 'css-loader', options: { importLoaders: 1 } },
                    { loader: 'postcss-loader', options: {
                        plugins: function () {
                            return [
                                require('postcss-import'),
                                require('postcss-cssnext')({
                                    features: cssSettings
                                })
                            ]
                        }
                    }}
                ]
            }
            /* ... */
        ]
    }
};