Issue #767šŸ’¬ AnsweredOpened January 16, 2018by frank-tenzing0 reactions

Generate a new grapes.min.js after make changes to grapes.js

Quick answerby artf

@frank-tenzing you shouldn't edit files in the dist folder, those are generated every time by npm run build You have to edit files inside src. BTW that code seems to come from cash library, not grapesjs itself (about the issue let's keep talking here #768 )

Read full answer below ↓

Question

Hi guys - happy new year, I'm currently doing some investigation of GrapesJs for our further project. The question is I fellow the https://github.com/artf/grapesjs/issues/196 to minify a new grapes.min.js, but when I deleted the grapes.min.js and tried to make some change in the grapes.js which is in the dist folder, for example, changed the logic in the removeClass function: function removeClass(v, c) { if (v.classList) { v.classList.remove(c); } else { if (v.className instanceof SVGAnimatedString) { // doing something } else { v.className = v.className.replace(c, ""); } } } , and then run t...

Answers (2)

artf• January 17, 2018

@frank-tenzing you shouldn't edit files in the dist folder, those are generated every time by npm run build You have to edit files inside src. BTW that code seems to come from cash library, not grapesjs itself (about the issue let's keep talking here #768 )

lock[bot]• September 18, 2019

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.

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.