Skip to content

Commit b874fea

Browse files
committed
Revert to 1.9.1
1 parent f8e67d9 commit b874fea

File tree

5 files changed

+55
-72
lines changed

5 files changed

+55
-72
lines changed

.vscode/extensions.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// See http://go.microsoft.com/fwlink/?LinkId=827846
33
// for the documentation about the extensions.json format
44
"recommendations": [
5-
"dbaeumer.vscode-eslint",
6-
"eamodio.tsl-problem-matcher"
5+
"dbaeumer.vscode-eslint"
76
]
87
}

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"outFiles": [
2929
"${workspaceFolder}/out/test/**/*.js"
3030
],
31-
"preLaunchTask": "npm: test-watch"
31+
"preLaunchTask": "npm: compile"
3232
}
3333
]
3434
}

.vscode/tasks.json

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,16 @@
55
"tasks": [
66
{
77
"type": "npm",
8-
"script": "watch",
9-
"problemMatcher": [
10-
"$ts-webpack-watch",
11-
"$tslint-webpack-watch"
12-
],
13-
"isBackground": true,
8+
"script": "webpack",
9+
"problemMatcher": "$tsc-watch",
10+
"isBackground": false,
1411
"presentation": {
1512
"reveal": "never"
1613
},
1714
"group": {
1815
"kind": "build",
1916
"isDefault": true
2017
}
21-
},
22-
{
23-
"type": "npm",
24-
"script": "test-watch",
25-
"problemMatcher": "$tsc-watch",
26-
"isBackground": true,
27-
"presentation": {
28-
"reveal": "never"
29-
},
30-
"group": "build"
3118
}
3219
]
33-
}
20+
}

package.json

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vscode-html-css",
33
"displayName": "HTML CSS Support",
44
"description": "CSS Intellisense for HTML",
5-
"version": "1.10.0",
5+
"version": "1.9.1",
66
"publisher": "ecmel",
77
"license": "MIT",
88
"homepage": "https://github.com/ecmel/vscode-html-css",
@@ -13,7 +13,7 @@
1313
"url": "https://github.com/ecmel/vscode-html-css.git"
1414
},
1515
"engines": {
16-
"vscode": "^1.53.0"
16+
"vscode": "^1.52.0"
1717
},
1818
"categories": [
1919
"Programming Languages",
@@ -68,36 +68,36 @@
6868
},
6969
"main": "./dist/extension.js",
7070
"scripts": {
71-
"vscode:prepublish": "npm run package",
72-
"compile": "webpack",
73-
"watch": "webpack --watch",
74-
"package": "webpack --mode production --devtool hidden-source-map",
75-
"test-compile": "tsc -p ./",
76-
"test-watch": "tsc -watch -p ./",
77-
"pretest": "npm run test-compile && npm run lint",
71+
"compile": "tsc -p ./",
72+
"deploy": "vsce publish",
7873
"lint": "eslint src --ext ts",
74+
"package": "vsce package",
75+
"pretest": "npm run compile && npm run lint",
7976
"test": "node ./out/test/runTest.js",
80-
"dist": "vsce package"
77+
"vscode:prepublish": "webpack --mode production",
78+
"watch": "tsc -watch -p ./",
79+
"webpack-dev": "webpack --mode development --watch",
80+
"webpack": "webpack --mode development"
8181
},
8282
"devDependencies": {
83-
"@types/css-tree": "^1.0.5",
83+
"@types/css-tree": "^1.0.4",
8484
"@types/glob": "^7.1.3",
8585
"@types/mocha": "^8.0.4",
8686
"@types/node-fetch": "^2.5.7",
8787
"@types/node": "^12.11.7",
88-
"@types/vscode": "^1.53.0",
89-
"@typescript-eslint/eslint-plugin": "^4.14.1",
90-
"@typescript-eslint/parser": "^4.14.1",
88+
"@types/vscode": "^1.52.0",
89+
"@typescript-eslint/eslint-plugin": "^4.9.0",
90+
"@typescript-eslint/parser": "^4.9.0",
9191
"css-tree": "^1.1.2",
92-
"eslint": "^7.19.0",
92+
"eslint": "^7.15.0",
9393
"glob": "^7.1.6",
94-
"mocha": "^8.2.1",
94+
"mocha": "^8.1.3",
9595
"node-fetch": "^2.6.1",
96-
"ts-loader": "^8.0.14",
97-
"typescript": "^4.1.3",
98-
"vsce": "^1.85.0",
99-
"vscode-test": "^1.5.0",
100-
"webpack-cli": "^4.4.0",
101-
"webpack": "^5.19.0"
96+
"ts-loader": "^8.0.11",
97+
"typescript": "^4.1.2",
98+
"vsce": "^1.83.0",
99+
"vscode-test": "^1.4.1",
100+
"webpack-cli": "^4.2.0",
101+
"webpack": "^5.10.0"
102102
}
103103
}

webpack.config.js

Lines changed: 27 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -4,38 +4,35 @@
44

55
const path = require("path");
66

7-
/**@type {import('webpack').Configuration}*/
87
const config = {
9-
target: "node", // vscode extensions run in a Node.js-context 📖 -> https://webpack.js.org/configuration/node/
10-
mode: "none", // this leaves the source code as close as possible to the original (when packaging we set this to 'production')
8+
target: "node",
119

12-
entry: "./src/extension.ts", // the entry point of this extension, 📖 -> https://webpack.js.org/configuration/entry-context/
13-
output: {
14-
// the bundle is stored in the 'dist' folder (check package.json), 📖 -> https://webpack.js.org/configuration/output/
15-
path: path.resolve(__dirname, "dist"),
16-
filename: "extension.js",
17-
libraryTarget: "commonjs2"
18-
},
19-
devtool: "nosources-source-map",
20-
externals: {
21-
vscode: "commonjs vscode" // the vscode-module is created on-the-fly and must be excluded. Add other modules that cannot be webpack'ed, 📖 -> https://webpack.js.org/configuration/externals/
22-
},
23-
resolve: {
24-
// support reading TypeScript and JavaScript files, 📖 -> https://github.com/TypeStrong/ts-loader
25-
extensions: [".ts", ".js"]
26-
},
27-
module: {
28-
rules: [
29-
{
30-
test: /\.ts$/,
31-
exclude: /node_modules/,
32-
use: [
33-
{
34-
loader: "ts-loader"
35-
}
10+
entry: "./src/extension.ts",
11+
output: {
12+
path: path.resolve(__dirname, "dist"),
13+
filename: "extension.js",
14+
libraryTarget: "commonjs2",
15+
devtoolModuleFilenameTemplate: "../[resource-path]"
16+
},
17+
devtool: "source-map",
18+
externals: {
19+
vscode: "commonjs vscode"
20+
},
21+
resolve: {
22+
extensions: [".ts", ".js"]
23+
},
24+
module: {
25+
rules: [
26+
{
27+
test: /\.ts$/,
28+
exclude: /node_modules/,
29+
use: [
30+
{
31+
loader: "ts-loader"
32+
}
33+
]
34+
}
3635
]
37-
}
38-
]
39-
}
36+
}
4037
};
4138
module.exports = config;

0 commit comments

Comments
 (0)