webpack loader for regularjs
Here is a simple example using regularjs-loader check it out
Installation
$ npm i regularjs-loader
Usage
webpack.config.js
var ExtractTextPlugin = ; moduleexports = // ... entry: './index.js' module: loaders: test: /\.rgl$/ loader: 'regularjs' regularjs: loaders: css: ExtractTextPlugin mcss: ExtractTextPlugin plugins: // ... 'app.css' ;
index.js
;;
App.rgl
RegularJs is Awesome
Button.rgl
{ text }
Try it out!