Skip to content

Commit 90ee13c

Browse files
committed
fix(index): use the type with metadata
1 parent 30d4c63 commit 90ee13c

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
import * as webpack from 'webpack'
33

44
/**
@@ -9,7 +9,7 @@ import * as webpack from 'webpack'
99
* See: https://webpack.github.io/docs/list-of-plugins.html#uglifyjsplugin
1010
*/
1111
export = function uglify({debug = false, exclude = [], mangle = {screw_ie8 : true, keep_fnames: true}} = {}) {
12-
return function uglify(this: WebpackConfig): WebpackConfig {
12+
return function uglify(this: WebpackConfigWithMetadata): WebpackConfigWithMetadata {
1313
const options = debug ? {
1414
beautify: true, //debug
1515
mangle: false, //debug

0 commit comments

Comments
 (0)