Ticket/InsdepUI/plugin/highlight-9.9.0/tools/build.js
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
// For the basic introductions on using this build script, see:
//
// <https://highlightjs.readthedocs.org/en/latest/building-testing.html>
//
// Otherwise, lets explain what each build target does in more detail, for
// those that wish to know before running this script.
//
// Build Targets
// -------------
//
// * browser
//
// The default target. This will package up the core `highlight.js` along
// with all the language definitions into the file `highlight.pack.js` --
// which will be compressed without including the option to disable it. It
// also builds the documentation for our readthedocs page, mentioned
// above, along with a local instance of the demo at:
//
// <https://highlightjs.org/static/demo/>.
//
// * cdn
//
// This will package up the core `highlight.js` along with all the
// language definitions into the file `highlight.min.js` and compresses
// all languages and styles into separate files. Since the target is for
// CDNs -- like cdnjs and jsdelivr -- it doesn't matter if you put the
// option to disable compression, this target is always be compressed. Do
// keep in mind that we don't keep the build results in the main
// repository; however, there is a separate repository for those that want
// the CDN builds without using a third party site or building it
// themselves. For those curious, head over to:
//
// <https://github.com/highlightjs/cdn-release>
//
// * node
//
// This build will transform the library into a CommonJS module. It
// includes the generation of an `index.js` file that will be the main
// file imported for use with Node.js or browserify. Do note that this
// includes all languages by default and it might be too heavy to use for
// browserify. Luckily, you can easily do two things to make the build
// smaller; either specify the specific language/category you need or you
// can use the browser or cdn builds and it will work like any CommonJS
// file. Also with the CommonJS module, it includes the documentation for
// our readthedocs page and the uncompressed styles. Getting this build is
// pretty easy as it is the one that gets published to npm with the
// standard `npm install highlight.js`, but you can also visit the package
// page at:
//
// <https://www.npmjs.com/package/highlight.js>
//
// * all
//
// Builds every target and places the results into a sub-directory based
// off of the target name relative to the `build` directory; for example,
// "node" with go into `build/node`, "cdn" will go into `build/cdn`,
// "browser" will go into `build/browser` and so forth.
//
// All build targets will end up in the `build` directory.
后面还有 29 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。