GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - simcn/webpack_plugin_makeheadcdn: webpack插件主要生成页头与CDN

BranchesTags
Open more actions menu

Latest commit

 

History

9 Commits
9 Commits

Folders and files

NameName
Last commit message
Last commit date
LICENSE
LICENSE
 
 
README.md
README.md
 
 
index.js
index.js
 
 
package.json
package.json
 
 
webpack.config.js
webpack.config.js
 
 

Repository files navigation

webpack_plugin_makeheadcdn

webpack插 用于生成资源头部节点与CDN时间戳的

安装

npm i webpack_plugin_makeheadcdn --save-dev

使用 (webpack.config.js)

var webpack_fed_build = require('webpack_plugin_makeheadcdn');

var config = {
	... //省略
	plugins: [
		new webpack_fed_build({
			time:timechuo,
			author:'chenwp@chenwp'
		})
	]
};

module.exports = config;

源代码

var datax = 'http://www.baidu.com/b.js?v=__time__';
var data = '/open.js?t=__time__';
_loadJS('/dist/fed.v2.0.js?v=__md5__');
_loadJS('/dist/task.v2.0.js?v=__md5__');

转化后代码

/*! 2016-04-08T09:38:00.791Z _^0^_ [email protected] */

var datax = 'http://www.baidu.com/b.js?v=2016-04-08T09:38:01.342Z';
var data = '/open.js?t=2016-04-08T09:38:01.342Z';

_loadJS('/dist/fed.v2.0.js?v=59c4b3981a8af7fc5751f935c8911340');
_loadJS('/dist/task.v2.0.js?v=5f19626307f66ffea4fbce66c392a965');

About

webpack插件主要生成页头与CDN

Resources

Readme
MIT license
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.