HankLiu Style Base
提供基础的Less
变量、常用的 class 样式以及 mixins。
安装
npm install @hankliu/style -D
or
yarn add @hankliu/style -D
使用
- in webpack.config.js
const styleLoader = require('@hankliu/style');
/* Webpack@2+: webpack.config.js */
module: {
rules: [
{
test: /\.less$/,
use: [
'style-loader',
'css-loader',
'postcss-loader',
'less-loader',
...
styleLoader,
],
},
],
},