Force-render CSS on basePath

This is a very hacky way of doing it: a base path of /seance will
lead to rendering in,

  public/seance/seance/css/styles.css

but it seems to be the only way out for now 🙁

Hopefully in future we'll come up with a more elegant solution.
This commit is contained in:
Hippo 2021-07-26 23:09:40 +05:30
parent badcebeb35
commit c49836bec7

View file

@ -41,7 +41,7 @@ let options = {
],
},
extractCSS: true,
cssOutputPath: 'css/styles.css',
cssOutputPath: (config.basePath || '') + '/css/styles.css',
publicPath: 'public' + (config.basePath || ''),
compilerConfig: {
// custom webpack config