Pārlūkot izejas kodu

:art: #18 change latest to version

Van 6 gadi atpakaļ
vecāks
revīzija
991b752def
4 mainītis faili ar 5 papildinājumiem un 5 dzēšanām
  1. 2 2
      demo/demo.js
  2. 1 1
      package.json
  3. 1 1
      src/ts/util/Options.ts
  4. 1 1
      webpack.config.js

+ 2 - 2
demo/demo.js

@@ -1,5 +1,5 @@
-import Vditor from '../src/index'
-// import Vditor from '../dist/index.min'
+// import Vditor from '../src/index'
+import Vditor from '../dist/index.min'
 
 const LazyLoadImage = () => {
   const loadImg = (it) => {

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "vditor",
-  "version": "0.2.3",
+  "version": "0.2.4",
   "description": "A markdown editor written in TypeScript",
   "author": " Vanessa <[email protected]> (http://vanessa.b3log.org)",
   "homepage": "https://hacpai.com/cr",

+ 1 - 1
src/ts/util/Options.ts

@@ -15,7 +15,7 @@ export class Options {
                 "cold_sweat": "😰",
                 "heart": "❤️",
             },
-            emojiPath: "https://cdn.jsdelivr.net/npm/vditor@latest/src/assets/emoji",
+            emojiPath: "https://cdn.jsdelivr.net/npm/vditor/src/assets/emoji",
         },
         lang: "zh_CN",
         placeholder: "",

+ 1 - 1
webpack.config.js

@@ -50,7 +50,7 @@ module.exports = [
       filename: '[name].js',
       path: path.resolve(__dirname, 'dist'),
       chunkFilename: '[name].bundle.js',
-      publicPath: 'https://cdn.jsdelivr.net/npm/vditor@latest/dist/',
+      publicPath: `https://cdn.jsdelivr.net/npm/vditor@${pkg.version}/dist/`,
       libraryTarget: 'umd',
       library: 'Vditor',
       libraryExport: 'default',