gfs-example-loader
v1.0.4
Published
gfs example loader for webpack
Downloads
2
Readme
gfs-example-loader
Usage
$ npm install gfs-example-loader --save-dev
{
test: /\.(es6|js)$/,
loaders: ['babel','gfs-example-loader' ]
}
//js file
/*@title 描述*/
/*@description 第一个示例演示*/
/*@class ExampleDemo*/
//demo start
import React,{Component} from 'react'
class ExampleDemo extends Component{
render(){
return (
<div>test demo</div>
)
}
}
//demo end
module.exports.demo =ExampleDemo