TP
Asked
Hello,
I need to remove Footer Version Tag and Change the manual hard code Footer.
Please guide me on how to do this. Send me an Edit file or file code line.
Thank you.
I need to remove Footer Version Tag and Change the manual hard code Footer.
Please guide me on how to do this. Send me an Edit file or file code line.
Thank you.
- MSAnsweredHello,
You can create `cleanPublicFolder.js` with following contents
```
const rimraf = require('rimraf');
rimraf.sync('./public/js');
rimraf.sync('./public/mix-manifest.json');
```
Otherwise changing start script command from
```
"prod": "node cleanPublicFolder.js && npm run production && npm run auth:p && npm run mps:p && npm run shop:p && npm run gsw"
```
to
```
"prod": "npm run production && npm run auth:p && npm run mps:p && npm run shop:p && npm run gsw"
```
should work fine.
To run the prod command, you will need to install the node modules with `npm i` auth modules with `cd modules/Auth && npm i && cd ../..` mps modules with `npm run mps:i` and shop modules with `npm run shop:i` then only you can run the full production build command `npm run prod`
So the first time you will need to run the commands as following
```sh
npm i
cd modules/Auth && npm i
cd ../..
npm run mps:i
npm run shop:i
npm run prod
```
Second time onward `npm run prod` should work fine as all the modules are installed.
If you are not sure, please hire any developer to help you.
Thank you - Login to Reply