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
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,18 @@ jobs:
env: WEBPACK_VERSION=latest JOB_PART=lint
script: npm run travis:$JOB_PART
- <<: *test-latest
node_js: 8
node_js: 10
env: WEBPACK_VERSION=latest JOB_PART=coverage
script: npm run travis:$JOB_PART
after_success: 'bash <(curl -s https://codecov.io/bash)'
- <<: *test-latest
node_js: 10
env: WEBPACK_VERSION=latest JOB_PART=test
script: npm run travis:$JOB_PART
- stage: Webpack canary
before_script: npm i --no-save git://github.com/webpack/webpack.git#master
script: npm run travis:$JOB_PART
node_js: 8
node_js: 6
env: WEBPACK_VERSION=canary JOB_PART=test
before_install:
- 'if [[ `npm -v` != 5* ]]; then npm i -g npm@^5.0.0; fi'
Expand Down
6 changes: 3 additions & 3 deletions example/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const path = require('path');
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
const threadLoader = require('../src'); // eslint-disable-line import/no-extraneous-dependencies

module.exports = (env) => {
const workerPool = {
Expand Down Expand Up @@ -30,7 +30,7 @@ module.exports = (env) => {
test: /\.js$/,
use: [
env.threads !== 0 && {
loader: 'thread-loader',
loader: path.resolve(__dirname, '../src/index.js'),
options: workerPool,
},
'babel-loader',
Expand All @@ -41,7 +41,7 @@ module.exports = (env) => {
use: [
MiniCssExtractPlugin.loader,
env.threads !== 0 && {
loader: 'thread-loader',
loader: path.resolve(__dirname, '../src/index.js'),
options: workerPoolSass,
},
'css-loader',
Expand Down
Loading