Skip to content

Little Template for Greasemonkey 4 + Typescript 4 + Webpack 4

Notifications You must be signed in to change notification settings

MPThLee/userscript-ts-webpack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example GM4 Userscript With TypeScript 4 & Webpack 4

Install & Run

$ npm install # or yarn install

$ npm run build # or yarn build

Header Configuration

See config/meta.json.

@grant

If you using @grant for API, Just put the name of API you want, without namespace. e.g) GM.setValue to setValue

Also if you set GM3Compat to true, It also grant old API(GM3, starts with GM_). But, You will need @require field for API polyfill(s).

About

Little Template for Greasemonkey 4 + Typescript 4 + Webpack 4

Topics

Resources

Stars

Watchers

Forks