New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gulp-mad

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-mad - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

2

package.json
{
"name": "gulp-mad",
"version": "0.0.2",
"version": "0.0.3",
"description": "gulp-mad",

@@ -5,0 +5,0 @@ "main": "index.js",

# gulp-mad
处理文件,像处理vue的文件一样
打包css、html到js中
mad(extension)
extension:需要修改的后缀名,默认".js"
## 安装
``` JavaScript
npm install --save-dev gulp-mad
```
## gulp内使用方式
引用gulp-mad并调用。
``` JavaScript
const gulp = require('gulp');
const madx = require('./index');
const ts = require('gulp-typescript');
gulp.task("default", function () {
gulp.src("expmlate/a.mad")
.pipe(madx(".ts"))
.pipe(ts({ module: "amd" }))
.pipe(gulp.dest('dist'));
});
```
mad([extension])
extension:需要修改的后缀名,默认".js"。如果使用typescript,请一定设置为.ts
## 使用
- 新建一个后缀名为.mad的文件
- 将html写入template标签内
- html默认生成id为template的js变量,如果有多个可以设置id。自动生成变量名为id的变量。
- css样式写入style的标签内
- JavaScript写入script标签内
## git地址
[https://github.com/cuo9958/gulp-mad](https://github.com/cuo9958/gulp-mad)
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