mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 14:21:16 +00:00
21 lines
542 B
JavaScript
21 lines
542 B
JavaScript
const path = require("path");
|
|
const CopyPlugin = require("copy-webpack-plugin");
|
|
const WasmPackPlugin = require("@wasm-tool/wasm-pack-plugin");
|
|
|
|
const dist = path.resolve(__dirname, "dist");
|
|
|
|
module.exports = {
|
|
mode: "production",
|
|
entry: { index: "./js/index.js" },
|
|
output: { path: dist, filename: "[name].js" },
|
|
devServer: {
|
|
contentBase: dist,
|
|
},
|
|
plugins: [
|
|
new CopyPlugin([path.resolve(__dirname, "static")]),
|
|
|
|
new WasmPackPlugin({
|
|
crateDirectory: __dirname,
|
|
}),
|
|
]
|
|
};
|