@esportsplus/ui 0.0.51 → 0.0.53

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/webpack.config.ts +23 -25
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "description": "UI",
10
10
  "devDependencies": {
11
- "@esportsplus/webpack": "^0.0.49",
11
+ "@esportsplus/webpack": "^0.0.53",
12
12
  "modern-normalize": "^1.1.0"
13
13
  },
14
14
  "main": "build/index.js",
@@ -22,5 +22,5 @@
22
22
  "prepublishOnly": "npm run build"
23
23
  },
24
24
  "types": "build/index.d.ts",
25
- "version": "0.0.51"
25
+ "version": "0.0.53"
26
26
  }
package/webpack.config.ts CHANGED
@@ -1,29 +1,27 @@
1
- import { config, entry } from '@esportsplus/webpack';
1
+ import { config, entry, mode } from '@esportsplus/webpack';
2
2
 
3
3
 
4
- export default ({ production }: { production?: string }) => {
5
- let webpack = {
6
- entry: {
7
- css: {
8
- components: {
9
- styles: entry.css('src/components/**/index.scss'),
10
- variables: entry.css('src/components/**/variables.scss')
11
- },
12
- fonts: {
13
- montserrat: entry.css('storage/fonts/montserrat/index.css')
14
- },
15
- normalizer: entry.css('modern-normalize/modern-normalize.css'),
16
- utilities: {
17
- styles: entry.css('src/css-utilities/**/index.scss'),
18
- variables: entry.css('src/css-utilities/**/variables.scss')
19
- }
20
- }
4
+ export default ({ production }: { production?: string }) => config.web({
5
+ entry: {
6
+ css: {
7
+ components: {
8
+ styles: entry.css('src/components/**/index.scss'),
9
+ variables: entry.css('src/components/**/variables.scss')
21
10
  },
22
- // Temprorary root output until we can route to build through package.json or similar
23
- output: {
24
- path: '.'
11
+ fonts: {
12
+ montserrat: entry.css('storage/fonts/montserrat/index.css')
13
+ },
14
+ normalizer: entry.css('modern-normalize/modern-normalize.css'),
15
+ utilities: {
16
+ styles: entry.css('src/css-utilities/**/index.scss'),
17
+ variables: entry.css('src/css-utilities/**/variables.scss')
25
18
  }
26
- };
27
-
28
- return config(webpack, { production });
29
- };
19
+ }
20
+ },
21
+ mode: mode(production),
22
+ // Temporary output until we can css root directory can be set
23
+ // through package.json or similar ( like 'main' key )
24
+ output: {
25
+ path: '.'
26
+ }
27
+ });