Skip to content

Commit

Permalink
chore(deps): bump and audit dependencies with npm audit fix (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
mistic authored and evilebottnawi committed Dec 17, 2018
1 parent c891a9c commit 1f81d04
Show file tree
Hide file tree
Showing 8 changed files with 8,446 additions and 5,159 deletions.
60 changes: 60 additions & 0 deletions example/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion example/package.json
@@ -1,6 +1,6 @@
{
"dependencies": {
"lodash-es": "^4.17.4",
"react": "^15.5.4"
"react": "^16.6.3"
}
}
26 changes: 14 additions & 12 deletions example/webpack.config.js
@@ -1,5 +1,5 @@
const path = require('path');
const ExtractTextPlugin = require('extract-text-webpack-plugin'); // eslint-disable-line import/no-extraneous-dependencies
const MiniCssExtractPlugin = require('mini-css-extract-plugin'); // eslint-disable-line import/no-extraneous-dependencies
const threadLoader = require('thread-loader'); // eslint-disable-line import/no-extraneous-dependencies

module.exports = (env) => {
Expand All @@ -17,6 +17,7 @@ module.exports = (env) => {
threadLoader.warmup(workerPoolSass, ['sass-loader', 'css-loader']);
}
return {
mode: 'none',
context: __dirname,
entry: ['react', 'lodash-es', './index.js'],
output: {
Expand All @@ -37,21 +38,22 @@ module.exports = (env) => {
},
{
test: /\.scss$/,
use: ExtractTextPlugin.extract({
use: [
env.threads !== 0 && {
loader: 'thread-loader',
options: workerPoolSass,
},
'css-loader',
'sass-loader',
].filter(Boolean),
}),
use: [
MiniCssExtractPlugin.loader,
env.threads !== 0 && {
loader: 'thread-loader',
options: workerPoolSass,
},
'css-loader',
'sass-loader',
].filter(Boolean),
},
],
},
plugins: [
new ExtractTextPlugin('style.css'),
new MiniCssExtractPlugin({
filename: 'style.css',
}),
],
stats: {
children: false,
Expand Down
102 changes: 0 additions & 102 deletions example/yarn.lock

This file was deleted.

0 comments on commit 1f81d04

Please sign in to comment.