ProfilingPlugin
íë¬ê·¸ì¸ ì¤í ìê°ì´ í¬í¨ë Chrome íë¡í íì¼ì ìì±í©ëë¤. 기본ì ì¼ë¡ events.json íì¼ì ì¶ë ¥í©ëë¤. outputPathìµì
ì ì¬ì©íì¬ ì»¤ì¤í
íì¼ ê²½ë¡ë¥¼ ì ê³µí ì ììµëë¤.
ì°¸ê³ : ProfilingPluginì ì ë ê²½ë¡ë§ ì¬ì©í©ëë¤.
Options
outputPath: 커ì¤í ì¶ë ¥ íì¼(json)ì ì ë ê²½ë¡
Usage: default
new webpack.debug.ProfilingPlugin();Usage: custom outputPath
import path from "node:path";
import { fileURLToPath } from "node:url";
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
new webpack.debug.ProfilingPlugin({
outputPath: path.join(__dirname, "profiling/profileEvents.json"),
});íë¡í íì¼ì 보기 ìí´ìë ë¤ìê³¼ ê°ì ê³¼ì ì ë°ë¦ ëë¤.
ProfilingPluginê³¼ í¨ê» webpackì ì¤íí©ëë¤.- Chromeì¼ë¡ ì´ëíì¬ DevTools를 ì´ê³
Performanceí(ì´ì ëª ì¹Timeline)ì¼ë¡ ì´ëí©ëë¤. - ìì±ë íì¼(기본 ê°
events.json)ì profilerë¡ ëì´ë¤ ëìµëë¤.
ìì ê°ì ê³¼ì ì ê±°ì¹ë©´ pluginë¹ timeline íµê³ì í¸ì¶ë¤ì´ íìë ê²ì ëë¤!
« Previous
PrefetchPluginNext »
ProgressPlugin


