/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
examples/html-csp/src/index.html
24 строки
549 B
Alexander Akait
feat: native HTML output features (favicon attributes, manifest, CSP, tag inject/transform hooks) (#21487)
23 июл 2026, 22:02
Не верифицирован
23 июл 2026, 22:02
7121604
Код
Авторство
О чём код?
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>CSP</title> <!-- External stylesheet: bundled, then inlined into a <style> by `output.html.inline`, so CSP can hash it. --> <link rel="stylesheet" href="./styles.css" /> <!-- Inline <style>: hashed as-is. --> <style> body { font-family: sans-serif; } </style> </head> <body> <h1>Content-Security-Policy</h1> <!-- External script: bundled, then inlined into a <script> and hashed. --> <script src="./app.js"></script> </body> </html>