grapesjs icon indicating copy to clipboard operation
grapesjs copied to clipboard

How to modify the src and minify to a .min.js

Open blackbirdzzz opened this issue 9 years ago • 3 comments

Hi i'm actually modifing everything in my .min.js but every variable is renamed and i want to know a technique to modify everything and get a clear code, i'm new in js if you can tell me a tutorial to get everything with npm with no problem, cause i got some error using npm

blackbirdzzz avatar Jul 27 '17 10:07 blackbirdzzz

My advice to you is install it as a NodeJS project and build the min.js from there. It is more safe and more productive.

rgcarrasqueira avatar Jul 30 '17 14:07 rgcarrasqueira

As suggested by @rgcarrasqueira just install and build it via nodejs Here is the Development steps from the README

Clone the repository and install all the necessary dependencies

$ git clone https://github.com/artf/grapesjs.git
$ cd grapesjs
$ npm i

Start the dev server (visit the printed url, eg. http://localhost:8080). When you update files, inside the src/ folder, the server will automatically reload the page

$ npm start

When you're ready, build the source, you'll find the output minified file(s) in the dist/ folder

$ npm run build

artf avatar Aug 02 '17 21:08 artf

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Sep 18 '19 14:09 lock[bot]