Skip to content

Commit c209ea9

Browse files
committed
refactor: modify variable PLUGIN_NAME, rename export function
1 parent 83425dc commit c209ea9

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

index.es.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ const { inlineSource } = require$$0;
66

77

88

9-
const PLUGIN_NAME = '@exuanbo/gulp-inline-source';
9+
const PLUGIN_NAME = 'gulp-inline-source-html';
1010

1111
/**
1212
* inline-source wrapper
1313
* @param {Object} [options] - https://github.com/popeindustries/inline-source#usage
1414
*/
15-
const gulpInlineSource = (options = {}) => {
15+
const gulpInlineSourceHtml = (options = {}) => {
1616
return through.obj(async (file, _, callback) => {
1717
try {
1818
if (file.isNull()) {
@@ -41,6 +41,6 @@ const gulpInlineSource = (options = {}) => {
4141
})
4242
};
4343

44-
var gulpInlineSource_1 = gulpInlineSource;
44+
var gulpInlineSource = gulpInlineSourceHtml;
4545

46-
export default gulpInlineSource_1;
46+
export default gulpInlineSource;

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ const { inlineSource } = require('inline-source')
44
const PluginError = require('plugin-error')
55
const through = require('through2')
66

7-
const PLUGIN_NAME = '@exuanbo/gulp-inline-source'
7+
const PLUGIN_NAME = 'gulp-inline-source-html'
88

99
/**
1010
* inline-source wrapper
1111
* @param {Object} [options] - https://github.com/popeindustries/inline-source#usage
1212
*/
13-
const gulpInlineSource = (options = {}) => {
13+
const gulpInlineSourceHtml = (options = {}) => {
1414
return through.obj(async (file, _, callback) => {
1515
try {
1616
if (file.isNull()) {
@@ -39,4 +39,4 @@ const gulpInlineSource = (options = {}) => {
3939
})
4040
}
4141

42-
module.exports = gulpInlineSource
42+
module.exports = gulpInlineSourceHtml

0 commit comments

Comments
 (0)