Compare commits
15 Commits
1410137551
...
ad2384e4de
Author | SHA1 | Date |
---|---|---|
Cris Stringfellow | ad2384e4de | |
Cris Stringfellow | 8fd8676c5b | |
Cris Stringfellow | 3f05da672c | |
Cris Stringfellow | 896bcf576f | |
Cris Stringfellow | 6fb62fff31 | |
Cris Stringfellow | 0f0de1e115 | |
Cris Stringfellow | 12dcc79cf5 | |
Cris Stringfellow | 13a06a476c | |
Cris Stringfellow | acb28eaf2a | |
Cris Stringfellow | 57314bd9a2 | |
Cris Stringfellow | 938078d953 | |
Cris Stringfellow | c45d674553 | |
Cris Stringfellow | af5c73b5e8 | |
Cris Stringfellow | cd2919f22b | |
Cris | ee5153ab15 |
File diff suppressed because it is too large
Load Diff
|
@ -1,6 +1,6 @@
|
|||
import path from 'path';
|
||||
//import commonjs from '@rollup/plugin-commonjs';
|
||||
import { terser } from "rollup-plugin-terser";
|
||||
import terser from "@rollup/plugin-terser";
|
||||
|
||||
export default {
|
||||
input: path.resolve('src', 'app.js'),
|
||||
|
@ -9,5 +9,8 @@ export default {
|
|||
format: 'es',
|
||||
generatedCode: 'es2015'
|
||||
},
|
||||
plugins: [/*commonjs(),*/ terser()]
|
||||
plugins: [
|
||||
//commonjs(),
|
||||
terser()
|
||||
]
|
||||
};
|
|
@ -36,10 +36,11 @@ fi
|
|||
|
||||
npm run bundle
|
||||
echo "Bundling javascript..."
|
||||
export NODE_ENV='production'
|
||||
npx webpack
|
||||
chmod +x ./build/22120.js
|
||||
echo "Building for windows nix and macos..."
|
||||
pkg --compress Brotli .
|
||||
npx pkg --compress Gzip .
|
||||
|
||||
echo "Restoring dev (ES module) mode..."
|
||||
./scripts/go_dev.sh
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
echo "Post install script"
|
||||
npm i -g rollup eslint
|
|
@ -7,6 +7,9 @@ module.exports = {
|
|||
path: path.resolve(__dirname, 'build'),
|
||||
filename: "22120.js"
|
||||
},
|
||||
optimization: {
|
||||
minimize: false
|
||||
},
|
||||
target: "node",
|
||||
node: {
|
||||
__dirname: false
|
Loading…
Reference in New Issue