Skip to content

Commit 7f2c5c6

Browse files
chore(defaults): update
1 parent 65450d9 commit 7f2c5c6

File tree

6 files changed

+71
-40
lines changed

6 files changed

+71
-40
lines changed

.editorconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@ insert_final_newline = true
99
trim_trailing_whitespace = true
1010

1111
[*.md]
12-
insert_final_newline = true
1312
trim_trailing_whitespace = false

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
### [3.3.2](https://github.com/webpack-contrib/css-loader/compare/v3.3.1...v3.3.2) (2019-12-12)
6+
7+
8+
### Bug Fixes
9+
10+
* logic for order and media queries for imports ([1fb5134](https://github.com/webpack-contrib/css-loader/commit/1fb51340a7719b6f5b517cb71ea85ec5d45c1199))
11+
512
### [3.3.1](https://github.com/webpack-contrib/css-loader/compare/v3.3.0...v3.3.1) (2019-12-12)
613

714

azure-pipelines.yml

Lines changed: 39 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@ trigger:
22
- master
33
- next
44

5+
variables:
6+
npm_config_cache: $(Pipeline.Workspace)/.npm
7+
58
jobs:
69
- job: Lint
710
pool:
8-
vmImage: ubuntu-16.04
11+
vmImage: ubuntu-latest
912
steps:
1013
- task: NodeTool@0
1114
inputs:
@@ -20,10 +23,12 @@ jobs:
2023
node -v
2124
npm -v
2225
displayName: 'Print versions'
23-
- task: Npm@1
26+
- task: CacheBeta@1
2427
inputs:
25-
command: custom
26-
customCommand: ci
28+
key: npm | $(Agent.OS) | package-lock.json
29+
path: $(npm_config_cache)
30+
displayName: 'Cache npm'
31+
- script: npm ci
2732
displayName: 'Install dependencies'
2833
- script: npm run lint
2934
displayName: 'Run lint'
@@ -34,10 +39,13 @@ jobs:
3439

3540
- job: Linux
3641
pool:
37-
vmImage: ubuntu-16.04
42+
vmImage: ubuntu-latest
3843
strategy:
39-
maxParallel: 4
44+
maxParallel: 5
4045
matrix:
46+
node-13:
47+
node_version: ^13.0.0
48+
webpack_version: latest
4149
node-12:
4250
node_version: ^12.0.0
4351
webpack_version: latest
@@ -50,7 +58,6 @@ jobs:
5058
node-10-canary:
5159
node_version: ^10.13.0
5260
webpack_version: next
53-
continue_on_error: true
5461
steps:
5562
- task: NodeTool@0
5663
inputs:
@@ -65,10 +72,12 @@ jobs:
6572
node -v
6673
npm -v
6774
displayName: 'Print versions'
68-
- task: Npm@1
75+
- task: CacheBeta@1
6976
inputs:
70-
command: custom
71-
customCommand: ci
77+
key: npm | $(Agent.OS) | package-lock.json
78+
path: $(npm_config_cache)
79+
displayName: 'Cache npm'
80+
- script: npm ci
7281
displayName: 'Install dependencies'
7382
- script: npm i webpack@$(webpack_version)
7483
displayName: 'Install "webpack@$(webpack_version)"'
@@ -86,10 +95,13 @@ jobs:
8695

8796
- job: macOS
8897
pool:
89-
vmImage: macOS-10.14
98+
vmImage: macOS-latest
9099
strategy:
91-
maxParallel: 4
100+
maxParallel: 5
92101
matrix:
102+
node-13:
103+
node_version: ^13.0.0
104+
webpack_version: latest
93105
node-12:
94106
node_version: ^12.0.0
95107
webpack_version: latest
@@ -102,7 +114,6 @@ jobs:
102114
node-10-canary:
103115
node_version: ^10.13.0
104116
webpack_version: next
105-
continue_on_error: true
106117
steps:
107118
- task: NodeTool@0
108119
inputs:
@@ -117,10 +128,12 @@ jobs:
117128
node -v
118129
npm -v
119130
displayName: 'Print versions'
120-
- task: Npm@1
131+
- task: CacheBeta@1
121132
inputs:
122-
command: custom
123-
customCommand: ci
133+
key: npm | $(Agent.OS) | package-lock.json
134+
path: $(npm_config_cache)
135+
displayName: 'Cache npm'
136+
- script: npm ci
124137
displayName: 'Install dependencies'
125138
- script: npm i webpack@$(webpack_version)
126139
displayName: 'Install "webpack@$(webpack_version)"'
@@ -138,10 +151,13 @@ jobs:
138151

139152
- job: Windows
140153
pool:
141-
vmImage: windows-2019
154+
vmImage: windows-latest
142155
strategy:
143-
maxParallel: 4
156+
maxParallel: 5
144157
matrix:
158+
node-13:
159+
node_version: ^13.0.0
160+
webpack_version: latest
145161
node-12:
146162
node_version: ^12.0.0
147163
webpack_version: latest
@@ -154,7 +170,6 @@ jobs:
154170
node-10-canary:
155171
node_version: ^10.13.0
156172
webpack_version: next
157-
continue_on_error: true
158173
steps:
159174
- script: 'git config --global core.autocrlf input'
160175
displayName: 'Config git core.autocrlf'
@@ -172,10 +187,12 @@ jobs:
172187
node -v
173188
npm -v
174189
displayName: 'Print versions'
175-
- task: Npm@1
190+
- task: CacheBeta@1
176191
inputs:
177-
command: custom
178-
customCommand: ci
192+
key: npm | $(Agent.OS) | package-lock.json
193+
path: $(npm_config_cache)
194+
displayName: 'Cache npm'
195+
- script: npm ci
179196
displayName: 'Install dependencies'
180197
- script: npm i webpack@$(webpack_version)
181198
displayName: 'Install "webpack@$(webpack_version)"'

lint-staged.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module.exports = {
22
'*.js': ['prettier --write', 'eslint --fix', 'git add'],
3-
'*.{json,md,yml,css}': ['prettier --write', 'git add'],
3+
'*.{json,md,yml,css,ts}': ['prettier --write', 'git add'],
44
};

package.json

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,39 @@
11
{
22
"name": "css-loader",
3-
"version": "3.3.1",
3+
"version": "3.3.2",
44
"description": "css loader module for webpack",
55
"license": "MIT",
66
"repository": "webpack-contrib/css-loader",
77
"author": "Tobias Koppers @sokra",
88
"homepage": "https://github.com/webpack-contrib/css-loader",
99
"bugs": "https://github.com/webpack-contrib/css-loader/issues",
10+
"funding": {
11+
"type": "opencollective",
12+
"url": "https://opencollective.com/webpack"
13+
},
1014
"main": "dist/cjs.js",
1115
"engines": {
1216
"node": ">= 8.9.0"
1317
},
1418
"scripts": {
1519
"start": "npm run build -- -w",
16-
"prebuild": "npm run clean",
17-
"build": "cross-env NODE_ENV=production babel src -d dist --ignore \"src/**/*.test.js\" --copy-files",
20+
"clean": "del-cli dist",
1821
"validate:runtime": "es-check es5 \"dist/runtime/**/*.js\"",
22+
"prebuild": "npm run clean",
23+
"build": "cross-env NODE_ENV=production babel src -d dist --copy-files",
1924
"postbuild": "npm run validate:runtime",
20-
"clean": "del-cli dist",
2125
"commitlint": "commitlint --from=master",
22-
"lint:prettier": "prettier \"{**/*,*}.{js,json,md,yml,css}\" --list-different",
23-
"lint:js": "eslint --cache src test",
24-
"lint": "npm-run-all -l -p \"lint:**\"",
25-
"prepare": "npm run build",
26-
"release": "standard-version",
2726
"security": "npm audit",
27+
"lint:prettier": "prettier \"{**/*,*}.{js,json,md,yml,css,ts}\" --list-different",
28+
"lint:js": "eslint --cache .",
29+
"lint": "npm-run-all -l -p \"lint:**\"",
2830
"test:only": "cross-env NODE_ENV=test jest",
29-
"test:watch": "cross-env NODE_ENV=test jest --watch",
30-
"test:coverage": "cross-env NODE_ENV=test jest --collectCoverageFrom=\"src/**/*.js\" --coverage",
31+
"test:watch": "npm run test:only -- --watch",
32+
"test:coverage": "npm run test:only -- --collectCoverageFrom=\"src/**/*.js\" --coverage",
3133
"pretest": "npm run lint",
32-
"test": "cross-env NODE_ENV=test npm run test:coverage",
34+
"test": "npm run test:coverage",
35+
"prepare": "npm run build",
36+
"release": "standard-version",
3337
"defaults": "webpack-defaults"
3438
},
3539
"files": [
@@ -60,7 +64,7 @@
6064
"@babel/preset-env": "^7.7.4",
6165
"@commitlint/cli": "^8.2.0",
6266
"@commitlint/config-conventional": "^8.2.0",
63-
"@webpack-contrib/defaults": "^5.0.2",
67+
"@webpack-contrib/defaults": "^6.3.0",
6468
"@webpack-contrib/eslint-config-webpack": "^3.0.0",
6569
"babel-jest": "^24.9.0",
6670
"commitlint-azure-pipelines-cli": "^1.0.2",
@@ -76,7 +80,7 @@
7680
"jest": "^24.9.0",
7781
"jest-junit": "^9.0.0",
7882
"lint-staged": "^9.5.0",
79-
"memory-fs": "^0.5.0",
83+
"memfs": "^3.0.1",
8084
"npm-run-all": "^4.1.5",
8185
"postcss-loader": "^3.0.0",
8286
"postcss-preset-env": "^6.7.0",

test/helpers.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import path from 'path';
33

44
import del from 'del';
55
import webpack from 'webpack';
6-
import MemoryFS from 'memory-fs';
6+
import { createFsFromVolume, Volume } from 'memfs';
77
import stripAnsi from 'strip-ansi';
88
import normalizePath from 'normalize-path';
99

@@ -205,7 +205,11 @@ function compile(fixture, config = {}, options = {}) {
205205
const compiler = webpack(config);
206206

207207
if (!options.output) {
208-
compiler.outputFileSystem = new MemoryFS();
208+
const outputFileSystem = createFsFromVolume(new Volume());
209+
// Todo remove when we drop webpack@4 support
210+
outputFileSystem.join = path.join.bind(path);
211+
212+
compiler.outputFileSystem = outputFileSystem;
209213
}
210214

211215
return new Promise((resolve, reject) =>

0 commit comments

Comments
 (0)