/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v5.108.0
examples/html/webpack.config.js
21 строка
591 B
Alexander Akait
feat(html): add module.parser.html.template option (#21055)
29 май 2026, 16:56
Не верифицирован
29 май 2026, 16:56
4fbec23
Код
Авторство
О чём код?
"use strict"; /** @type {import("webpack").Configuration} */ const config = { // `target: "web"` makes the CSS generator emit `.css` chunks (for the // `<link rel="stylesheet">` and the inline `<style>`). target: "web", entry: { // Only an HTML entry point — no JavaScript entry. Its stylesheet, // scripts (external and inline), inline style and images are all // discovered from the HTML and bundled, and `dist/index.html` is // emitted with every reference rewritten. page: "./src/index.html" }, experiments: { html: true, css: true } }; module.exports = config;