針對js文件增加時間戳,避免文件緩存未更新 01 webpack.config.ts import * as path from 'path'; import * as webpack from 'webpack'; import HelloWorld from './src/plugins/HelloWorld'; const HtmlWebpackPlugin = require('html
我們先來看下第一段代碼: const arr1 = [ { id: 1, value: 1 }, { id: 2, value: 2 }, { id: 3, value: 3 }, { id: 4, value: 4 }, { id: 5, value: 5 }, ] arr1.forEach((item, index) = { if (item.i