fix: inefficiency > broken
This commit is contained in:
parent
0250482a3d
commit
8a602a477d
|
@ -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({
|
||||
|
|
Loading…
Reference in New Issue
Block a user