@swiftwasm/swift-webpack-plugin
v1.0.9
Published
webpack plugin for Swift
Downloads
5
Readme
@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")
}),
],
};