I have an index.html containing:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
and the webpack config uses:
new HtmlWebpackPartialsPlugin({
path: './src/analytics.html',
location: 'head',
priority: 'high',
options: {ga_property_id: 'UA-172517233-1'},
}),
to inject analytics. In the dev server I see the meta tag taking precedence:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"><script async src="...
but the production build the script is pushed before the meta tag: see https://codice.lieve.info/
<!doctype html><html><head><script async src=...</script><meta charset="utf-8">
Plugin version is 0.5.6.
I have an index.html containing:
and the webpack config uses:
to inject analytics. In the dev server I see the meta tag taking precedence:
but the production build the script is pushed before the meta tag: see https://codice.lieve.info/
Plugin version is 0.5.6.