-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Asset injection #2
Comments
Sounds like a great feature, I'll let you know when it's added. |
Hey @temosis, I've just released v1.2.0 which adds this option. Here's how you can now disable injection: const mix = require('laravel-mix');
require('laravel-mix-twig-to-html');
const files = [
{
template: 'src/templates/about/**/*.twig',
title: 'About',
inject: false, // disable asset tag injection
},
{
template: 'src/templates/index.twig',
title: 'Home',
inject: false, // disable asset tag injection
}
]
mix.twigToHtml({
files: files,
fileBase: 'src/templates',
}); |
Looks like this option is enabled by default for the new globs option. Can we disable by default and enable on a per file config as noted above? Maybe a
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add Option to disabled injection for HtmlWebpackPlugin
The text was updated successfully, but these errors were encountered: