Skip to content

DeprecationWarning: Tapable.plugin is deprecated. Use new API on .hooks instead #73

@magicfish2019

Description

@magicfish2019

I got the error message below
DeprecationWarning: Tapable.plugin is deprecated. Use new API on .hooks instead

I have updated the node.js to 10.15.3.
Here is my package.json file
"dependencies": {
"glob": "^7.1.3",
"lodash": "^4.17.11"
},
"devDependencies": {
"@babel/core": "^7.3.4",
"@babel/preset-env": "^7.3.4",
"babel-loader": "^8.0.5",
"babel-plugin-lodash": "^3.3.4",
"css-loader": "^2.1.1",
"extract-text-webpack-plugin": "^4.0.0-beta.0",
"file-loader": "^3.0.1",
"html-loader": "^0.5.5",
"lodash-webpack-plugin": "^0.11.5",
"node-sass": "^4.11.0",
"optimize-css-assets-webpack-plugin": "^5.0.1",
"uglifyjs-webpack-plugin": "^2.1.2",
"webpack": "^4.11.0",
"webpack-cli": "^3.2.3",
"webpack-concat-plugin": "^3.0.0",
"webpack-merge-and-include-globally": "^2.1.16",
"webpack-sweet-entry": "^1.1.9"
},
"scripts": {
"test": "echo "Error: no test specified" && exit 1"
},
"repository": {
"type": "git"
},
"keywords": [],
"license": "ISC"
}

Here is the contatPlugin configuration in webpack.config.js
new ConcatPlugin({
uglify: false,
sourceMap: false,
name: 'js',
outputPath: path.resolve(__dirname, 'main/webapp/asset/'),
fileName: '[name].js',
filesToConcat: [path.resolve(sourcePath, 'js/**/*.js')],
attributes: {
async: true
}
}),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions