fix: inefficiency > broken

This commit is contained in:
cha0s 2022-03-18 14:01:09 -05:00
parent 0250482a3d
commit 8a602a477d

View File

@ -24,8 +24,10 @@ export default {
const extract = {}; const extract = {};
const style = {}; const style = {};
if ('server' === target) { if ('server' === target) {
extract.enabled = false; extract.enabled = true;
style.injectType = 'lazyStyleTag'; extract.plugin = {
filename: 'index.css',
};
} }
if ('http' === target) { if ('http' === target) {
extract.enabled = isProduction; extract.enabled = isProduction;
@ -36,7 +38,6 @@ export default {
extract.plugin = { extract.plugin = {
filename: 'index.css', filename: 'index.css',
}; };
style.injectType = 'lazyStyleTag';
} }
neutrino.use( neutrino.use(
styleLoader({ styleLoader({