Swift Package Index


A super simple mini version of WebPack written in Swift


  • The latest stable release is 0.2.5. Released over 1 year ago.
  • The last commit to develop was 9 months ago.

Swift Version Compatibility

  • 0.2.5 and develop
    5.3
    5.2
    5.1
    5.0
    4.2
Full build results

Platform Compatibility

  • 0.2.5 and develop
    iOS
    macOS(Intel)
    macOS(ARM)
    Linux
    tvOS
    watchOS
Full build results

WebPackMiniS

Swift3 Swift4 Swift5 tuxOS macOS Travis

This is a tiny version of the webpack JavaScript bundler, but written in Swift.

The sole purpose is to get some basic packing and JavaScript module management functionality for server side Swift applications. Without having to download the whole NPM/webpack infrastructure (you know, du -sh node_modules => 82M ...)

Note: This is only intended for very simple development setups! Using the real webpack is still recommended for generating deployment bundles. And actually even for serious JS frontend development. The real webpack provides hot-reloads and such, which are super convenient (but require the webpack dev server to run alongside your server side Swift application).

Supported Features

webpack has literally tons of features and this supports very little of them :-)

What this does support:

  • transpile of some ES6 import and export statements
  • a hackish Vue loader, doesn't compile like the real loader and lacks tons of other features
  • import of CSS into inline JS

Status

This is a very hackish setup, but seems to work well enough for our purposes so far :-)

Who

WebPackMiniS is brought to you by ZeeZide. We like feedback, GitHub stars, cool contract work, presumably any form of praise you can think of.

Join us in the Noze.io Slack.