<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Uploading node_modules in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Uploading-node-modules/m-p/814891#M34871</link>
    <description>&lt;P&gt;Isn't this for workflows, and not hubspot CMS?&lt;/P&gt;</description>
    <pubDate>Mon, 03 Jul 2023 13:34:01 GMT</pubDate>
    <dc:creator>icheshire</dc:creator>
    <dc:date>2023-07-03T13:34:01Z</dc:date>
    <item>
      <title>Uploading node_modules</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Uploading-node-modules/m-p/810815#M34719</link>
      <description>&lt;P&gt;Hey, I found out today that I can't upload node_modules because it's blocked by hubspot. I get that node_modules isn't ideal, but how else am I supposed to keep track of dependencies? I don't think manually uploading every external dependency I need, or using a CDN, is a realistic solution because there's no way to manage and update my dependencies.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 15:10:09 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Uploading-node-modules/m-p/810815#M34719</guid>
      <dc:creator>icheshire</dc:creator>
      <dc:date>2023-06-22T15:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading node_modules</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Uploading-node-modules/m-p/811256#M34729</link>
      <description>&lt;P&gt;You should really be using a source code repository like BitBucket or GitHub to store and track your files. The HubSpot Design Manager is not meant to be a respository, but a manager for compiled files only. Also, if you're not already using it, I suggest using the&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/cms/developer-reference/local-development-cli" target="_blank"&gt;HubSpot CLI&lt;/A&gt; to upload your compiled files.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 12:48:03 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Uploading-node-modules/m-p/811256#M34729</guid>
      <dc:creator>alyssamwilie</dc:creator>
      <dc:date>2023-06-23T12:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading node_modules</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Uploading-node-modules/m-p/811721#M34739</link>
      <description>&lt;P&gt;No, I wanted to use the files in node modules - node modules for frontend usually have a compiled `dist` folder. I know it's wasteful to upload the whole thing, but how else do I get tracked and organized dependencies for hubspot?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 01:46:57 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Uploading-node-modules/m-p/811721#M34739</guid>
      <dc:creator>icheshire</dc:creator>
      <dc:date>2023-06-26T01:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading node_modules</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Uploading-node-modules/m-p/811931#M34742</link>
      <description>&lt;P&gt;Files in node_modules should &lt;A href="https://stackoverflow.com/questions/59618630/is-it-ok-to-refer-to-node-modules-directly#answer-59619241" target="_blank" rel="noopener"&gt;never be referenced directly&lt;/A&gt; in the project as that's not how pcakages are meant to be used. Ideally the files should be getting compiled into your own files using imports and/or a &lt;A href="https://snipcart.com/blog/javascript-module-bundler" target="_blank" rel="noopener"&gt;bundler&lt;/A&gt;. If you aren't comfortable with using bundlers and aren't using very many packages you could instead use CDN or copy/paste the dist files directly into your project. Also, due to it's normally large size, node_modules shouldn't ever be tracked but instead managed with a &lt;A href="https://www.digitalocean.com/community/tutorials/how-to-use-node-js-modules-with-npm-and-package-json" target="_blank" rel="noopener"&gt;package manager&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 12:51:27 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Uploading-node-modules/m-p/811931#M34742</guid>
      <dc:creator>alyssamwilie</dc:creator>
      <dc:date>2023-06-26T12:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading node_modules</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Uploading-node-modules/m-p/812070#M34754</link>
      <description>But how would you do that using github / hubspot CMS?&lt;BR /&gt;</description>
      <pubDate>Mon, 26 Jun 2023 16:13:08 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Uploading-node-modules/m-p/812070#M34754</guid>
      <dc:creator>icheshire</dc:creator>
      <dc:date>2023-06-26T16:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading node_modules</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Uploading-node-modules/m-p/814890#M34870</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/564839"&gt;@icheshire&lt;/a&gt;&amp;nbsp;, I am not exactly aware of your development workflow.&lt;BR /&gt;&lt;BR /&gt;But in the case of design manager and custom code workflows and serverless functions, You have to generate a bundle file and upload it to the place where you need it. There's no direct way of uploading node_modules to hubspot cms because it is not meant for that.&lt;BR /&gt;&lt;BR /&gt;Here is an example for custom code :&amp;nbsp;&lt;A href="https://developers.hubspot.com/blog/how-to-use-npm-packages-in-custom-code-workflow-actions" target="_blank"&gt;https://developers.hubspot.com/blog/how-to-use-npm-packages-in-custom-code-workflow-actions&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 13:30:58 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Uploading-node-modules/m-p/814890#M34870</guid>
      <dc:creator>SKumar15</dc:creator>
      <dc:date>2023-07-03T13:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading node_modules</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Uploading-node-modules/m-p/814891#M34871</link>
      <description>&lt;P&gt;Isn't this for workflows, and not hubspot CMS?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 13:34:01 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Uploading-node-modules/m-p/814891#M34871</guid>
      <dc:creator>icheshire</dc:creator>
      <dc:date>2023-07-03T13:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading node_modules</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Uploading-node-modules/m-p/814893#M34872</link>
      <description>&lt;P&gt;Yes, this is for workflows, but you have to do a similar thing for cms as well, compile the modules in a bundle, upload it to the design manager using cli or directly, and then import it in the module using require_js or use the bundle globally and use the require&amp;nbsp; function to get access to packages within the bundle.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 13:41:12 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Uploading-node-modules/m-p/814893#M34872</guid>
      <dc:creator>SKumar15</dc:creator>
      <dc:date>2023-07-03T13:41:12Z</dc:date>
    </item>
  </channel>
</rss>

