File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,9 @@ class TailwindExtractor {
33
33
34
34
module . exports = {
35
35
runtimeCompiler : true ,
36
- baseUrl : '/' ,
36
+ baseUrl : process . env . NODE_ENV === 'production'
37
+ ? '/'
38
+ : `${ config . https ? 'https' : 'http' } ://${ config . host } :${ config . port } /` ,
37
39
outputDir : 'web/dist' ,
38
40
filenameHashing : process . env . NODE_ENV === 'production' ? true : false ,
39
41
css : {
@@ -44,6 +46,7 @@ module.exports = {
44
46
// host: config.host,
45
47
// port: config.port,
46
48
https : config . https ,
49
+ headers : { 'Access-Control-Allow-Origin' : '*' } ,
47
50
before ( app , server ) {
48
51
const sane = require ( 'sane' )
49
52
var watcher = sane ( path . join ( __dirname , config . watchDir ) , { glob : [ '**/*' ] } ) ;
@@ -84,4 +87,4 @@ module.exports = {
84
87
config . plugins . delete ( 'preload' )
85
88
config . plugins . delete ( 'prefetch' )
86
89
}
87
- }
90
+ }
You can’t perform that action at this time.
0 commit comments