Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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.

Loading