Skip to content

Commit

Permalink
Merge pull request hackerwins#27 from kxmbrian/master
Browse files Browse the repository at this point in the history
Update webpack config
  • Loading branch information
i-kitaev authored May 29, 2017
2 parents 8b49c1d + a026a54 commit 783d8a0
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 27 deletions.
40 changes: 20 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,33 +29,33 @@
"license": "MIT",
"readmeFilename": "README.md",
"dependencies": {
"summernote": "^0.8.2",
"codemirror": "^5.23.0"
"codemirror": "^5.23.0",
"prop-types": "^15.5.10",
"summernote": "^0.8.2"
},
"peerDependencies": {
"jquery": "^2.2.0 || ^3.0.0",
"bootstrap": "^3.3.6",
"jquery": "^2.2.0 || ^3.0.0",
"react": "^15.5.0",
"react-dom": "*",
"prop-types": "*"
"react-dom": "*"
},
"devDependencies": {
"webpack": "2.2.1",
"babel-core": "^6.24.1",
"babel-loader": "^7.0.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
"copy-webpack-plugin": "4.0.1",
"css-loader": "^0.28.3",
"eslint": "^3.19.0",
"eslint-config-airbnb": "^15.0.1",
"eslint-plugin-import": "^2.3.0",
"eslint-plugin-jsx-a11y": "^5.0.3",
"eslint-plugin-react": "^7.0.1",
"extract-text-webpack-plugin": "2.1.0",
"file-loader": "^0.11.1",
"node-libs-browser": "2.0.0",
"babel-core": "6.23.1",
"babel-loader": "6.3.2",
"babel-preset-es2015": "6.22.0",
"babel-preset-react": "6.23.0",
"style-loader": "^0.18.1",
"url-loader": "0.5.8",
"file-loader": "0.10.1",
"style-loader": "0.13.2",
"css-loader": "0.26.2",
"extract-text-webpack-plugin": "2.1.0",
"copy-webpack-plugin": "4.0.1",
"eslint": "3.17.0",
"eslint-config-airbnb": "14.1.0",
"eslint-plugin-react": "6.10.0",
"eslint-plugin-import": "2.2.0",
"eslint-plugin-jsx-a11y": "4.0.0"
"webpack": "^2.6.1"
}
}
22 changes: 15 additions & 7 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,22 +48,30 @@ module.exports = {
new ExtractTextPlugin('[name].css')
],
module: {
loaders: [
rules: [
{
test: /\.jsx$|\.js$/,
exclude: /(node_modules)/,
loader: 'babel',
query: {
presets: ['es2015', 'react']
}
use: [{
loader: 'babel-loader',
query: {
presets: ['es2015', 'react']
}
}]
},
{
test: /\.(css)(\?.+)?$/,
loader: ExtractTextPlugin.extract('style', 'css')
use: ExtractTextPlugin.extract({ fallback: 'style-loader', use: 'css-loader' })
},
{
test: /\.(otf|eot|svg|ttf|woff|woff2)(\?.+)?$/,
loader: 'url-loader?limit=4096&name=[name].[ext]'
use: [{
loader: 'url-loader',
options: {
limit: 4096,
name: '[name].[ext]'
}
}]
}
]
}
Expand Down

0 comments on commit 783d8a0

Please sign in to comment.