mirror of
https://github.com/chenasraf/DefinitelyTyped.git
synced 2026-05-18 01:49:01 +00:00
- definition file - tests https://github.com/lettertwo/appcache-webpack-plugin#usage https://www.npmjs.com/package/appcache-webpack-plugin Thanks!
13 lines
408 B
TypeScript
13 lines
408 B
TypeScript
import AppCachePlugin = require('appcache-webpack-plugin');
|
|
|
|
// $ExpectType AppCachePlugin
|
|
new AppCachePlugin({
|
|
cache: ['someOtherAsset.jpg'],
|
|
network: null, // No network access allowed!
|
|
fallback: ['failwhale.jpg'],
|
|
settings: ['prefer-online'],
|
|
exclude: ['file.txt', /.*\.js$/], // Exclude file.txt and all .js files
|
|
output: 'my-manifest.appcache',
|
|
comment: '##NOCOMMENT##',
|
|
});
|