webpack一次錯誤的意外

昨天在看深入淺出webpack一書,讀到爲單頁應用生成html一章時,提到內聯css通過_inline的方式,當時突然想把他作爲單獨的css文件輸出,然後自動注入。 其用於生成html的插件是 new WebPlugin({ template: './template.html', // HTML 模版文件所在的文件路徑 filename: 'index.html' // 輸出的 HTML 的文件
相關文章
相關標籤/搜索