packaging with scripthaus-server and mshell binaries, separate dev/prod builds. emain to launch local server from package

This commit is contained in:
sawka
2022-11-01 21:18:40 -07:00
parent 56a91a9601
commit d9cd211149
12 changed files with 139 additions and 30 deletions
+3 -1
View File
@@ -1,4 +1,5 @@
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const LodashModuleReplacementPlugin = require('lodash-webpack-plugin');
const path = require("path");
module.exports = {
@@ -8,7 +9,7 @@ module.exports = {
},
output: {
path: path.resolve(__dirname, "dist"),
filename: "[name]-dev.js"
filename: "[name].js",
},
module: {
rules: [
@@ -58,6 +59,7 @@ module.exports = {
},
plugins: [
new MiniCssExtractPlugin({filename: "[name].css", ignoreOrder: true}),
new LodashModuleReplacementPlugin(),
],
resolve: {
extensions: ['.ts', '.tsx', '.js', '.mjs', '.cjs', '.wasm', '.json', '.less', '.css']