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 style = {};
if ('server' === target) {
extract.enabled = false;
style.injectType = 'lazyStyleTag';
extract.enabled = true;
extract.plugin = {
filename: 'index.css',
};
}
if ('http' === target) {
extract.enabled = isProduction;
@ -36,7 +38,6 @@ export default {
extract.plugin = {
filename: 'index.css',
};
style.injectType = 'lazyStyleTag';
}
neutrino.use(
styleLoader({