I want to use output.path in another place.
like this
output  : {
    path : outputDir
},
plugins:[
    new CleanWebpackPlugin(["dist"], {
        root : {output.path}  //--->output.path
    }),
]can webpack do that?
I want to use output.path in another place.
like this
output  : {
    path : outputDir
},
plugins:[
    new CleanWebpackPlugin(["dist"], {
        root : {output.path}  //--->output.path
    }),
]can webpack do that?
 just use  outputDir  directly 
OK, no problem
use plug-in extract-text-webpack-plugin: package this error after running webpack: Users apple work self_test webpack node_modules schema-utils dist validateOptions.js:40 throw new _ValidationError2.default(ajv.errors, name); ^ false webpack.co...
use HtmlWebpackPlugin const HtmlWebpackPlugin = require( html-webpack-plugin ); module.exports = { plugins: [new HtmlWebpackPlugin()] }; Terminal gets a warning Entrypoint undefined = index.html "webpack": "^4.12.0"...
Today we encountered a problem: webpack packaging hash remains the same, but every time you add mode, you can pack hash and change it. Why output = { path: outputDir, filename: [name].js?[hash] , chunkFilename: [name].j...