This commit is contained in:
2023-04-07 14:25:04 +07:00
parent 0d6fea6895
commit c5aaa3d20b

View File

@@ -40,6 +40,16 @@
};
</code>
</pre>
<b>Ghi chú:</b>
<p>Cần cài thêm path bằng lệnh sau:</p>
<blockquote style="display: block; overflow: auto; padding: 10px; background-color: #f8f8f8; border-left: 3px solid
#5488c7; margin: 0 0 1rem;">
<p style="margin: 0;
color: #818181;
font-style: italic;">npm install --save-dev path</p>
</blockquote>
<p><strong>Entry</strong>: Là file webpack sẽ bắt đầu làm việc và thực hiện viêc nạp file để thực hiện việc bundler, cần phải trỏ tên và đúng đường dẫn đến file code cần bundler</p>
<p><strong>Output</strong> : Nó sẽ có tác dụng chỉ cho webpack biết cần phải lưu file tên gì và được compile ra đâu</p>
<p><strong>Bước 6:</strong> Chạy webpack</p>