mirror of
https://github.com/react-webpack-generators/generator-react-webpack.git
synced 2025-12-08 18:01:59 +00:00
Use babel-loader instead of jsx-loader
This commit is contained in:
parent
3a94fb3fe6
commit
9f89b6a23b
@ -18,7 +18,6 @@
|
||||
"load-grunt-tasks": "~0.6.0",
|
||||
"grunt-contrib-connect": "~0.8.0",
|
||||
"webpack": "~1.4.3",
|
||||
"jsx-loader": "~0.12.2",
|
||||
"grunt-webpack": "~1.0.8",
|
||||
"style-loader": "~0.8.0",
|
||||
"url-loader": "~0.5.5",
|
||||
@ -35,9 +34,9 @@
|
||||
"grunt-open": "~0.2.3",
|
||||
"jshint-loader": "~0.8.0",
|
||||
"jsxhint-loader": "~0.2.0",
|
||||
"grunt-contrib-copy": "~0.5.0",<% if (es6) { %>
|
||||
"grunt-contrib-copy": "~0.5.0",
|
||||
"babel": "^4.0.0",
|
||||
"babel-loader": "^4.0.0",<% } %>
|
||||
"babel-loader": "^4.0.0",
|
||||
"grunt-contrib-clean": "~0.6.0",<% if (stylesLanguage.match(/s[ac]ss/)) { %>
|
||||
"sass-loader": "^0.3.1",<% } %><% if (stylesLanguage === 'less') { %>
|
||||
"less-loader": "^2.0.0",<% } %><% if (stylesLanguage === 'stylus') { %>
|
||||
|
||||
@ -43,7 +43,7 @@ module.exports = {
|
||||
loaders: [{
|
||||
test: /\.js$/,
|
||||
exclude: /node_modules/,
|
||||
loader: 'react-hot!<% if (es6) { %>babel!<% }%>jsx-loader?harmony'
|
||||
loader: 'react-hot!babel-loader'
|
||||
},<% if (stylesLanguage === 'sass') { %> {
|
||||
test: /\.sass/,
|
||||
loader: 'style-loader!css-loader!sass-loader?outputStyle=expanded'
|
||||
|
||||
@ -50,7 +50,7 @@ module.exports = {
|
||||
loaders: [{
|
||||
test: /\.js$/,
|
||||
exclude: /node_modules/,
|
||||
loader: '<% if (es6) { %>babel!<% }%>jsx-loader?harmony'
|
||||
loader: 'babel-loader'
|
||||
}, {
|
||||
test: /\.css$/,
|
||||
loader: 'style-loader!css-loader'
|
||||
|
||||
@ -27,7 +27,7 @@ module.exports = function (config) {
|
||||
loader: 'url-loader?limit=10000&mimetype=image/png'
|
||||
}, {
|
||||
test: /\.js$/,
|
||||
loader: '<% if (es6) { %>babel!<% }%>jsx-loader?harmony'
|
||||
loader: 'babel-loader'
|
||||
},<% if (stylesLanguage === 'sass') { %> {
|
||||
test: /\.sass/,
|
||||
loader: 'style-loader!css-loader!sass-loader?outputStyle=expanded'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user