@everymatrix/casino-header-controller 0.0.186 → 0.0.190

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-header-controller",
3
- "version": "0.0.186",
3
+ "version": "0.0.190",
4
4
  "main": "dist/casino-header-controller.js",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
7
7
  "start": "sirv public",
8
- "build": "cross-env NODE_ENV=\"production\" && rollup -c",
8
+ "build": "cross-env NODE_ENV=production rollup -c",
9
9
  "dev": "cross-env NODE_ENV=\"development\" rollup -c -w",
10
10
  "validate": "svelte-check",
11
11
  "test": "echo"
@@ -38,5 +38,5 @@
38
38
  "publishConfig": {
39
39
  "access": "public"
40
40
  },
41
- "gitHead": "2e97d6b1abd29ec156f1c5745f5f4a53716210ae"
41
+ "gitHead": "44b4ddd09b030b74cbb8c6b1614bbe67fc010f66"
42
42
  }
package/rollup.config.js CHANGED
@@ -6,9 +6,11 @@ import livereload from 'rollup-plugin-livereload';
6
6
  import { terser } from 'rollup-plugin-terser';
7
7
  import sveltePreprocess from 'svelte-preprocess';
8
8
  import typescript from '@rollup/plugin-typescript';
9
+ import uglify from 'rollup-plugin-uglify';
9
10
  import image from '@rollup/plugin-image';
10
- const production = process.env.NODE_ENV === 'production';
11
- const dev = process.env.NODE_ENV === 'development';
11
+
12
+ const production = process.env.NODE_ENV == 'production';
13
+ const dev = process.env.NODE_ENV == 'development';
12
14
 
13
15
  export default {
14
16
  input: 'src/index.ts',
@@ -16,16 +18,19 @@ export default {
16
18
  sourcemap: true,
17
19
  format: 'umd',
18
20
  name: 'app',
19
- file: 'dist/casino-header-controller.js'
21
+ file: 'dist/casino-lobby.js',
20
22
  },
21
23
  plugins: [
22
24
  svelte({
23
25
  preprocess: sveltePreprocess(),
24
26
  compilerOptions: {
27
+ // @TODO check generate and hydratable
28
+ // generate: 'ssr',
29
+ // hydratable: true,
25
30
  // enable run-time checks when not in production
26
31
  customElement: true,
27
32
  dev: !production
28
- },
33
+ }
29
34
  }),
30
35
  image(),
31
36
  commonjs(),
@@ -48,12 +53,13 @@ export default {
48
53
  }),
49
54
  // If we're building for production (npm run build
50
55
  // instead of npm run dev), minify
51
- production &&
56
+ production &&
52
57
  terser({
53
58
  output: {
54
59
  comments: "all"
55
60
  },
56
- })
61
+ }),
62
+ production && uglify.uglify()
57
63
  ],
58
64
  watch: {
59
65
  clearScreen: false
@@ -8,7 +8,6 @@
8
8
  import '@everymatrix/player-account-balance-modal';
9
9
 
10
10
  import everymatrixLogo from './images/everymatrix-logo-white.png';
11
- import sliderPlaceholderImage from './images/slider.png';
12
11
 
13
12
  export let session:string = '';
14
13
  export let userid:string = '';
Binary file