0.7.0-alpha.4 • Published 7 years ago
gnoll-styles v0.7.0-alpha.4
gnoll-styles
Adds support for CSS and SCSS for Gnoll.
Install
npm i gnoll-styles
Usage
You need to create webpack.config.js
file in the your project
and add extend base config with scss plugin:
//webpack.config.js
const merge = require('webpack-merge')
const baseConfig = require('gnoll/config/webpack')
const stylesConfig = require('gnoll-styles')
module.exports = merge(baseConfig, stylesConfig)
Files with extensions .module.css
or .module.scss
use
CSS Modules
Postcss configuration
Postcss config includes following plugins:
- postcss-preset-env
- minification with
css-nano
in production mode
If you want to change config, you can create file postcss.config.js
in the
your project directory and extend the default config:
// postcss.config.js
const baseConfig = require('gnoll-styles/config/postcss')
module.exports = {
...baseConfig,
plugins: [
...baseConfig.plugins,
'some-plugin'
]
}
License
Public domain, see the LICENCE file.
0.7.0-alpha.4
7 years ago
0.7.0-alpha.3
7 years ago
0.7.0-alpha.2
7 years ago
0.7.0-alpha.1
7 years ago
0.7.0-alpha.0
7 years ago
0.6.0-7
7 years ago
0.6.0-6
7 years ago
0.6.0-5
7 years ago
0.6.0-4
7 years ago
0.6.0-3
7 years ago
0.6.0-2
7 years ago
0.6.0-1
7 years ago