Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gulp-pre-combo

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-pre-combo - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

4

package.json
{
"name": "gulp-pre-combo",
"version": "1.0.1",
"description": "处理相对路径",
"version": "1.0.2",
"description": "A gulp plugin to handle relative-path in html file.",
"main": "index.js",

@@ -6,0 +6,0 @@ "scripts": {

# gulp-pre-combo
### Usage
Initially, install `gulp-pre-combo` as a development dependency:
```
npm install --save gulp-pre-combo
```
Then, create task using `gulp-pre-combo`, which might look similar as below:
```
'use strict';
var gulp = require('gulp'),
precombo = require('gulp-pre-combo');
gulp.task('pre-combo', function () {
var repoinfo = require('../../repo-info.json');
gulp.src('src/**/*.html')
.pipe(Plugin.precombo(repoinfo))
.pipe(gulp.dest('build'));
})
```
Finally, fire gulp task:
```
gulp pre-combo
```
###HTML
```
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf-8">
<title>abc</title>
<link rel="stylesheet" type="text/css" href="./index.css">
<link rel="stylesheet" type="text/css" href="./index2.css">
</head>
<body>
<!--content-->
<script src="./index.js"></script>
<script src="./index2.js"></script>
</body>
</html>
```
###OUTPUT
```
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf-8">
<title>abc</title>
<link rel="stylesheet" type="GROUPNAME/REPONAME/VERSION/PATH/TO/FILE/index.min.CSS">
<link rel="stylesheet" type="text/css" href="GROUPNAME/REPONAME/VERSION/PATH/TO/FILE/index2.min.CSS">
</head>
<body>
<!--content-->
<script src="GROUPNAME/REPONAME/VERSION/PATH/TO/FILE/index.min.js"></script>
<script src="GROUPNAME/REPONAME/VERSION/PATH/TO/FILE/index2.min.js"></script>
</body>
</html>
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc