Developer forum

Forum » Swift » Swift 2 - Modify swift js modules

Swift 2 - Modify swift js modules

Joakim
Reply

Hi,

In Swift 1 it was fairly easy to modify existing js modules, e.g Cart. Modifications were made in said .js file then recompiled with webpack and voilà, no need for custom files.
I'm wondering how to go about this in Swift 2 since there's no access to the source files?


Replies

 
Joakim
Reply

Bump

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply
This post has been marked as an answer

Hi Joakim

It is more or less the same on Swift 2. Swift 2 comes in a distribution version that has been build or a source code version where you alter what you want and build it your self.

Discussed here: https://doc.dynamicweb.dev/swift/key-concepts/swift-css.html?tabs=source#two-approaches-source-vs-distribution

The entire source of Swift is available on Github: https://github.com/dynamicweb/Swift

Here is a guide on cloning swift 2 source, make modifications, and pull updates of Swift from Github: https://doc.dynamicweb.dev/swift/customization/developer-tools.html?tabs=azure

So if you want to modify Swifts builtin html, css and js, you clone the github repo and make your modifications - and if you want to add your modifications on top of swift without touching Swift files, you can use the distributed version.

We have chosen this path as that ressembles that of many software projects.

BR Nicolai

Votes for this answer: 1

 

You must be logged in to post in the forum