mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* feat: add declarations for sw-precache-webpack-plugin * override type of sw-precache option `importScripts`
37 lines
632 B
TypeScript
37 lines
632 B
TypeScript
import { Configuration } from 'webpack';
|
|
import * as SwPrecacheWebpackPlugin from 'sw-precache-webpack-plugin';
|
|
|
|
let config: Configuration = {
|
|
plugins: [new SwPrecacheWebpackPlugin()]
|
|
};
|
|
|
|
config = {
|
|
plugins: [
|
|
new SwPrecacheWebpackPlugin({
|
|
filename: ''
|
|
})
|
|
]
|
|
};
|
|
|
|
config = {
|
|
plugins: [
|
|
new SwPrecacheWebpackPlugin({
|
|
cacheId: ''
|
|
})
|
|
]
|
|
};
|
|
|
|
config = {
|
|
plugins: [
|
|
new SwPrecacheWebpackPlugin({
|
|
importScripts: [
|
|
{
|
|
chunkName: ''
|
|
}
|
|
]
|
|
})
|
|
]
|
|
};
|
|
|
|
export default config;
|