Search found 3 matches

by spec33
15 Sep 2017, 12:21
Forum: SFS2X HTML5 / JavaScript API
Topic: SFS2X with Webpack
Replies: 33
Views: 45075

Re: SFS2X with Webpack

Well, it seems to be the source code of this library, and the code I commented out are the last few lines, which export it as a module. I think the issue here may be that your build process does not treat this library as a module, but just concatenates its code to your API's code?
by spec33
15 Sep 2017, 11:45
Forum: SFS2X HTML5 / JavaScript API
Topic: SFS2X with Webpack
Replies: 33
Views: 45075

Re: SFS2X with Webpack

Yes, I can include the JS file in index.html (as I did for now, and it's working), but it feels... really hacky. Webpack is a really popular module bundler, so I thought that it should work with SFS, and I wanted to do it "the proper Webpack way". From a very fast search in Google I got th...
by spec33
14 Sep 2017, 09:57
Forum: SFS2X HTML5 / JavaScript API
Topic: SFS2X with Webpack
Replies: 33
Views: 45075

SFS2X with Webpack

Hi, I'm trying to use SFS JS API in a project with Webpack and Typescript, however I don't know how to set it up correctly. I haven't found any NPM packages related to SFS (are you planning to create one?), so I tried to include the .js file manually. My config is as follows: webpack.config.js modul...

Go to advanced search