Skip to content

swiftwasm/swift-webpack-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@swiftwasm/swift-webpack-plugin

webpack plugin for Swift

Installation

npm install -D @swiftwasm/swift-webpack-plugin

Usage

Please see example project

const path = require('path');
const SwiftWebpackPlugin = require('@swiftwasm/swift-webpack-plugin')

module.exports = {
  plugins: [
    new SwiftWebpackPlugin({
      packageDirectory: path.join(__dirname, 'LifeGame'),
      target: 'LifeGameWeb',
      dist: path.join(__dirname, "dist")
    }),
  ],
};