webpack plugin for Swift
npm install -D @swiftwasm/swift-webpack-plugin
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")
}),
],
};