Skip to content

Commit

Permalink
Merge pull request #278 from cnblogs/remove-highlight-lines
Browse files Browse the repository at this point in the history
remove:  highlight lines
  • Loading branch information
cnblogs-dudu authored Dec 16, 2023
2 parents f5b0e5e + b46e8f1 commit 67648c2
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 58 deletions.
17 changes: 0 additions & 17 deletions package-lock.json

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

9 changes: 1 addition & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,7 @@
],
"main": "./dist/extension.js",
"contributes": {
"markdown.markdownItPlugins": true,
"markdown.previewScripts": [
"./dist/markdown.js"
],
"markdown.previewStyles": [
"./dist/assets/styles/highlight-code-lines.css"
],
"markdown.markdownItPlugins": true,
"icons": {
"vscode-cnb-date": {
"description": "date",
Expand Down Expand Up @@ -1381,7 +1375,6 @@
"webpack-cli": "^5.1.4"
},
"dependencies": {
"@cnblogs/code-highlight-adapter": "^1.7.1",
"@cnblogs/code-quality": "^2.0.2",
"@cnblogs/markdown-it-presets": "^1.10.5",
"@fluentui/react": "^8.110.11",
Expand Down
27 changes: 0 additions & 27 deletions src/markdown/markdown.entry.ts

This file was deleted.

8 changes: 2 additions & 6 deletions webpack.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default (env, { mode }) => {
target: 'node', // vscode extensions run in a Node.js-context 📖 -> https://webpack.js.org/configuration/node/
mode: mode, // this leaves the source code as close as possible to the original (when packaging we set this to 'production')

entry: { extension: './src/extension.ts', markdown: './src/markdown/markdown.entry.ts' }, // the entry point of this extension, 📖 -> https://webpack.js.org/configuration/entry-context/
entry: { extension: './src/extension.ts' }, // the entry point of this extension, 📖 -> https://webpack.js.org/configuration/entry-context/
output: {
// the bundle is stored in the 'dist' folder (check package.json), 📖 -> https://webpack.js.org/configuration/output/
path: path.resolve(__dirname, 'dist'),
Expand Down Expand Up @@ -104,11 +104,7 @@ export default (env, { mode }) => {
//Note:- No wildcard is specified hence will copy all files and folders
from: 'src/assets', //Will resolve to RepoDir/src/assets
to: 'assets', //Copies all files from above dest to dist/assets
},
{
from: 'node_modules/@cnblogs/code-highlight-adapter/index.min.css',
to: 'assets/styles/highlight-code-lines.css',
},
},
{
from: 'src/wasm/rs_bg.wasm',
to: 'rs_bg.wasm',
Expand Down

0 comments on commit 67648c2

Please sign in to comment.