Skip to content

Commit 266ad5d

Browse files
committed
fix(index): use the type with metadata
1 parent e8a4ff4 commit 266ad5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {WebpackConfig, get} from '@easy-webpack/core'
1+
import {WebpackConfigWithMetadata, get} from '@easy-webpack/core'
22
const OfflinePlugin = require('offline-plugin')
33

44
/**
@@ -9,7 +9,7 @@ const OfflinePlugin = require('offline-plugin')
99
* See: https://github.com/NekR/offline-plugin
1010
*/
1111
export = function offline({options}:{options?:any} = {}) {
12-
return function offline(this: WebpackConfig): WebpackConfig {
12+
return function offline(this: WebpackConfigWithMetadata): WebpackConfigWithMetadata {
1313
return {
1414
plugins: get(this, 'plugins', []).concat([
1515
new OfflinePlugin(options),

0 commit comments

Comments
 (0)