isv-rx-radium-loader
v10.0.9
Published
RX css优化loader,将css、less对象编译成js对象
Downloads
6
Readme
Usage
in RX project,
//index.js
var style = require('style.css');
import {Component} from '@ali/rx';
import {View} from '@ali/rx-components';
export default class XXX extends Component{
render() {
return <View style={style.wrap}></View>;
}
}
//webpack.config.js
var rxLoaders = [];
rxLoaders.push('@ali/rx-radium-loader');
rxLoaders.push('css-loader');
loaders: [
{
test: /\.css?$/,
loader: rxLoaders.join('!')
}
]
Test
- npm install
- run
webpack test