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