Skip to content

Commit 3fe0fb2

Browse files
committed
Minify built bundle
1 parent ccff00f commit 3fe0fb2

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"json2ts": "npx json2ts -i src/schemas/schema.json -o src/schemas/schema.d.ts",
1919
"full-dev": "npm run test && npm run build && npm run dist-dev && npm run deploy",
2020
"full-prod": "npm run test && npm run build && npm run dist-prod && npm run deploy",
21-
"deploy": "shx cp ./test/playground.html ./dist && npx serverless client deploy --no-confirm && aws s3 cp ./dist/APRender.js s3://gameslib.dev.abstractplay.com --profile AbstractPlayDev && aws cloudfront create-invalidation --profile AbstractPlayDev --distribution-id E33VPPE0ZRJI7E --paths /*"
21+
"deploy": "shx cp ./test/playground.html ./dist && npx serverless client deploy --no-confirm && aws s3 cp ./dist/APRender.min.js* s3://gameslib.dev.abstractplay.com --profile AbstractPlayDev && aws cloudfront create-invalidation --profile AbstractPlayDev --distribution-id E33VPPE0ZRJI7E --paths /*"
2222
},
2323
"author": "Aaron Dalton <[email protected]> (https://www.perlkonig.com)",
2424
"license": "MIT",

test/playground.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8"/>
55
<title>Abstract Play: Renderer Playground</title>
6-
<script src="./APRender.js"></script>
6+
<script src="./APRender.min.js"></script>
77
<style>
88
svg * text {
99
cursor: default;

webpack.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
const path = require('path');
22

33
module.exports = {
4-
mode: 'development',
4+
mode: 'production',
55
entry: './src/index.ts',
6-
devtool: 'eval-source-map',
6+
devtool: 'source-map',
77
module: {
88
rules: [
99
{
@@ -17,7 +17,7 @@ module.exports = {
1717
extensions: [ '.tsx', '.ts', '.js' ]
1818
},
1919
output: {
20-
filename: 'APRender.js',
20+
filename: 'APRender.min.js',
2121
path: path.resolve(__dirname, 'dist'),
2222
library: 'APRender',
2323
libraryTarget: 'var'

0 commit comments

Comments
 (0)