Add React hot loader
parent
e875c484e6
commit
b206ab793c
15
package.json
15
package.json
|
@ -18,10 +18,16 @@
|
|||
"test:watch": "karma start --no-single-run"
|
||||
},
|
||||
"bugs": {
|
||||
"url" : "https://github.com/soyjavi/react-toolbox/issues",
|
||||
"url": "https://github.com/react-toolbox/react-toolbox/issues",
|
||||
"email": "issues@react-toolbox.com"
|
||||
},
|
||||
"keywords" : [ "react", "react-component", "material design", "toolkit", "components"],
|
||||
"keywords": [
|
||||
"react",
|
||||
"react-component",
|
||||
"material design",
|
||||
"toolkit",
|
||||
"components"
|
||||
],
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"react": "^0.13.2"
|
||||
|
@ -34,8 +40,8 @@
|
|||
"css-loader": "^0.14.5",
|
||||
"eslint": "^1.3.1",
|
||||
"eslint-plugin-react": "^3.3.1",
|
||||
"extract-text-webpack-plugin" : "^0.8.1",
|
||||
"expect": "^1.8.0",
|
||||
"extract-text-webpack-plugin": "^0.8.1",
|
||||
"karma": "^0.13.3",
|
||||
"karma-chrome-launcher": "^0.2.0",
|
||||
"karma-cli": "^0.1.0",
|
||||
|
@ -45,11 +51,12 @@
|
|||
"node-libs-browser": "^0.5.2",
|
||||
"phantomjs-polyfill": "0.0.1",
|
||||
"postcss-loader": "^0.4.3",
|
||||
"react-hot-loader": "^1.3.0",
|
||||
"sinon": "git://github.com/cjohansen/Sinon.JS#sinon-2.0",
|
||||
"style-loader": "^0.12.3",
|
||||
"stylus-loader": "^1.2.0",
|
||||
"webpack": "1.10.1",
|
||||
"webpack-dev-server": "*"
|
||||
},
|
||||
"repository" : "github:soyjavi/react-toolbox"
|
||||
"repository": "github:react-toolbox/react-toolbox"
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@ module.exports = {
|
|||
module: {
|
||||
noParse: [node_modules + '/react/dist/*.js'],
|
||||
loaders: [
|
||||
{ test: /(\.js|\.jsx)$/, exclude: /(node_modules)/, loader: 'babel?optional=runtime' },
|
||||
{ test: /(\.js|\.jsx)$/, exclude: /(node_modules)/, loaders: ['react-hot', 'babel'] },
|
||||
{ test: /\.styl$/, loader: ExtractTextPlugin.extract('style-loader', 'css-loader?modules&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]!postcss-loader!stylus-loader!') }
|
||||
]
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue