2022-05-16 16:45:00 +00:00
|
|
|
|
|
2022-05-24 02:53:00 +00:00
|
|
|
|
# Minifying
|
2022-05-16 16:45:00 +00:00
|
|
|
|
|
2022-05-24 02:53:00 +00:00
|
|
|
|
Before pushing the script files onto your production <br>
|
|
|
|
|
server it is recommended to minify them to save on <br>
|
|
|
|
|
load times as well as bandwidth.
|
2022-05-16 16:45:00 +00:00
|
|
|
|
|
2022-05-24 02:53:00 +00:00
|
|
|
|
<br>
|
2022-05-16 16:45:00 +00:00
|
|
|
|
|
2022-05-24 02:53:00 +00:00
|
|
|
|
## Requirements
|
2022-05-16 16:45:00 +00:00
|
|
|
|
|
2022-05-24 02:53:00 +00:00
|
|
|
|
- **[NodeJS]**
|
|
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
|
|
|
|
|
## Steps
|
|
|
|
|
|
|
|
|
|
1. Open a terminal in `/data/minify` .
|
|
|
|
|
|
|
|
|
|
2. Install the dependencies with:
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
npm install
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
3. Start the minification with:
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
node index.js
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!----------------------------------------------------------------------------->
|
|
|
|
|
|
|
|
|
|
[NodeJS]: https://nodejs.org/en/download/
|