mirror of
https://github.com/EmulatorJS/EmulatorJS.git
synced 2024-09-20 02:46:23 +00:00
35 lines
525 B
Markdown
35 lines
525 B
Markdown
|
|
|||
|
# Minifying
|
|||
|
|
|||
|
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.
|
|||
|
|
|||
|
<br>
|
|||
|
|
|||
|
## Requirements
|
|||
|
|
|||
|
- **[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/
|