(Solved) Building for a subfolder

Hi there,

I have to build my prod version for /FL/MAW/index.html

I could do that with the older cli - but now I can’t figure out how to do it

Help!

thanks,
Al;

1 Like

Build for production deployment to a subfolder

in auralia.json file:

"platform": {
...
   "productionBaseUrl":  "/Deployment/Path/Here/"
...
}

in webpack.config.js

replace this line:

const baseUrl = ‘/’;

with this:

  const baseUrl = (/production/.test(process.env.npm_lifecycle_script)) ? project.platform.productionBaseUrl : '/';
  console.debug('baseUrl', baseUrl);
1 Like