amotify 0.0.59 → 0.0.62
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/@types/_.tsx +5 -5
- package/@types/amot.tsx +11 -11
- package/@types/fn.tsx +14 -1
- package/@types/module.tsx +1 -1
- package/dist/amotify.js +1 -1
- package/dist/amotify.min.css +3 -3
- package/package.json +1 -1
- package/src/@atoms.tsx +3 -3
- package/src/@functions.tsx +11 -11
- package/src/@global.tsx +40 -40
- package/src/@jsminAmotifyExtension/_.tsx +4 -4
- package/src/@jsminAmotifyExtension/fetch.tsx +30 -30
- package/src/@jsminAmotifyExtension/formCollect.tsx +32 -32
- package/src/@jsminAmotifyExtension/spreadSheet.tsx +71 -71
- package/src/@jsminAmotifyExtension/variables.tsx +38 -38
- package/src/@molecules.tsx +6 -6
- package/src/@styles/props.scss +1 -1
- package/src/@styles/var.scss +0 -1
- package/src/@templates.tsx +1 -1
- package/src/@variables.tsx +2 -2
- package/src/atoms/FAI/parts.tsx +105 -105
- package/src/atoms/Logo/parts.tsx +19 -19
- package/src/atoms/Various/parts.tsx +26 -26
- package/src/config.tsx +62 -59
- package/src/functions/Button/_.tsx +49 -49
- package/src/functions/Cropper/parts.tsx +249 -249
- package/src/functions/Effects/Fade.tsx +18 -18
- package/src/functions/Effects/Ripple.tsx +24 -24
- package/src/functions/Effects/_.tsx +5 -5
- package/src/functions/Input/Chips/Selector.tsx +107 -107
- package/src/functions/Input/Chips/_.tsx +66 -66
- package/src/functions/Input/Contenteditable.tsx +18 -18
- package/src/functions/Input/DigitCharacters.tsx +48 -48
- package/src/functions/Input/File/_.tsx +114 -114
- package/src/functions/Input/Hidden.tsx +3 -3
- package/src/functions/Input/List/_.tsx +61 -61
- package/src/functions/Input/RichSelect/_.tsx +38 -38
- package/src/functions/Input/Segmented/_.tsx +30 -30
- package/src/functions/Input/Select/_.tsx +42 -42
- package/src/functions/Input/Slider/_.tsx +93 -93
- package/src/functions/Input/Switch/_.tsx +21 -21
- package/src/functions/Input/Text.tsx +99 -97
- package/src/functions/Input/TextArea.tsx +17 -17
- package/src/functions/Input/Time/Picker.tsx +199 -199
- package/src/functions/Input/Time/_.tsx +173 -173
- package/src/functions/Input/_.tsx +135 -135
- package/src/functions/Input/core.tsx +96 -96
- package/src/functions/Inputs/_.tsx +1 -1
- package/src/functions/Inputs/text.tsx +5 -5
- package/src/functions/Layout/PageNotFound.tsx +6 -6
- package/src/functions/Layout/PageRouter.tsx +28 -44
- package/src/functions/Layout/PageViewController/parts.tsx +7 -7
- package/src/functions/Layout/Plate.tsx +5 -5
- package/src/functions/Layout/RootViewController/parts.tsx +94 -71
- package/src/functions/Layout/RootViewController/style.module.scss +0 -1
- package/src/functions/Layout/SwipeView/parts.tsx +90 -90
- package/src/functions/Layout/TabBar.tsx +10 -10
- package/src/functions/Layout/_.tsx +7 -7
- package/src/functions/Loader/corner.tsx +10 -10
- package/src/functions/Loader/mini.tsx +25 -25
- package/src/functions/Loader/parts.tsx +31 -31
- package/src/functions/Loader/top.tsx +10 -10
- package/src/functions/Sheet/parts.tsx +219 -219
- package/src/functions/Sheet/style.module.scss +0 -20
- package/src/functions/SnackBar/parts.tsx +50 -50
- package/src/functions/Table/Data/parts.tsx +202 -202
- package/src/functions/Table/Drag/parts.tsx +76 -76
- package/src/functions/Table/Normal/parts.tsx +23 -23
- package/src/functions/Table/_.tsx +33 -33
- package/src/functions/Tooltips/parts.tsx +7 -7
- package/src/global/LaunchReactApplication.tsx +28 -28
- package/src/global/styleConverter.tsx +133 -133
- package/src/launch.tsx +27 -27
- package/src/molecules/Accordion/parts.tsx +41 -41
- package/src/molecules/LinkifyText/parts.tsx +18 -18
- package/src/molecules/List.tsx +6 -6
- package/src/preload.tsx +5 -45
- package/src/templates/PlayGround/parts.tsx +8 -8
- package/webpack.config.js +9 -9
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useStore,
|
|
3
3
|
React
|
|
4
|
-
} from '@global'
|
|
4
|
+
} from '@global'
|
|
5
5
|
import {
|
|
6
6
|
Box
|
|
7
|
-
} from '@atoms'
|
|
7
|
+
} from '@atoms'
|
|
8
8
|
|
|
9
|
-
import style from './style.module.scss'
|
|
9
|
+
import style from './style.module.scss'
|
|
10
10
|
|
|
11
11
|
const Component: React.FC<amotify.mols.Accordion.Params> = ( params ) => {
|
|
12
12
|
params = { ...params }
|
|
@@ -16,41 +16,41 @@ const Component: React.FC<amotify.mols.Accordion.Params> = ( params ) => {
|
|
|
16
16
|
defaultOpen = false,
|
|
17
17
|
override = false,
|
|
18
18
|
...others
|
|
19
|
-
} = params
|
|
19
|
+
} = params
|
|
20
20
|
|
|
21
|
-
let [ val_wrapID ] = React.useState( $.uuidGen() )
|
|
22
|
-
let [ val_contentID ] = React.useState( $.uuidGen() )
|
|
23
|
-
let [ val_open,set_open ] = React.useState( defaultOpen )
|
|
21
|
+
let [ val_wrapID ] = React.useState( $.uuidGen() )
|
|
22
|
+
let [ val_contentID ] = React.useState( $.uuidGen() )
|
|
23
|
+
let [ val_open,set_open ] = React.useState( defaultOpen )
|
|
24
24
|
|
|
25
25
|
if ( val_open != defaultOpen ) {
|
|
26
|
-
if ( override ) set_open( defaultOpen )
|
|
26
|
+
if ( override ) set_open( defaultOpen )
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
let Query = '[data-accordion-content-id="' + val_contentID + '"]'
|
|
29
|
+
let Query = '[data-accordion-content-id="' + val_contentID + '"]'
|
|
30
30
|
|
|
31
|
-
const mounted = React.useRef( false )
|
|
31
|
+
const mounted = React.useRef( false )
|
|
32
32
|
React.useEffect( () => {
|
|
33
|
-
let Content = $( Query )[ 0 ]
|
|
33
|
+
let Content = $( Query )[ 0 ]
|
|
34
34
|
if ( Content ) {
|
|
35
|
-
let contentHeight = Content.offsetHeight
|
|
36
|
-
let transitionTime = 0
|
|
35
|
+
let contentHeight = Content.offsetHeight
|
|
36
|
+
let transitionTime = 0
|
|
37
37
|
if ( slideAnimation == 'fast' ) {
|
|
38
|
-
transitionTime = contentHeight / 1000
|
|
39
|
-
transitionTime = Math.max( transitionTime,.2 )
|
|
38
|
+
transitionTime = contentHeight / 1000
|
|
39
|
+
transitionTime = Math.max( transitionTime,.2 )
|
|
40
40
|
} else if ( slideAnimation == 'slow' ) {
|
|
41
|
-
transitionTime = contentHeight / 300
|
|
41
|
+
transitionTime = contentHeight / 300
|
|
42
42
|
}
|
|
43
43
|
$( '#' + val_wrapID ).css( {
|
|
44
44
|
transition: transitionTime + 's'
|
|
45
45
|
} )
|
|
46
46
|
}
|
|
47
|
-
},[] )
|
|
47
|
+
},[] )
|
|
48
48
|
React.useEffect( () => {
|
|
49
|
-
let Wrap = $( '#' + val_wrapID )
|
|
50
|
-
let Content = $( Query )[ 0 ]
|
|
49
|
+
let Wrap = $( '#' + val_wrapID )
|
|
50
|
+
let Content = $( Query )[ 0 ]
|
|
51
51
|
if ( mounted.current ) {
|
|
52
52
|
if ( Content ) {
|
|
53
|
-
let contentHeight = Content.offsetHeight
|
|
53
|
+
let contentHeight = Content.offsetHeight
|
|
54
54
|
if ( $.is.exist( contentHeight ) ) {
|
|
55
55
|
if ( val_open ) {
|
|
56
56
|
Wrap.css( {
|
|
@@ -58,21 +58,21 @@ const Component: React.FC<amotify.mols.Accordion.Params> = ( params ) => {
|
|
|
58
58
|
} ).await( 200 ).css( {
|
|
59
59
|
maxHeight: 'unset',
|
|
60
60
|
overflow: ( params.overflow as any ) || 'unset'
|
|
61
|
-
} )
|
|
61
|
+
} )
|
|
62
62
|
} else {
|
|
63
63
|
Wrap.css( {
|
|
64
64
|
maxHeight: ( contentHeight + 1 ) + 'px',
|
|
65
65
|
} ).await( 100 ).css( {
|
|
66
66
|
maxHeight: 0 + 'px',
|
|
67
67
|
overflow: 'hidden'
|
|
68
|
-
} )
|
|
68
|
+
} )
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
} else {
|
|
73
|
-
mounted.current = true
|
|
73
|
+
mounted.current = true
|
|
74
74
|
if ( Content ) {
|
|
75
|
-
let contentHeight = Content.offsetHeight
|
|
75
|
+
let contentHeight = Content.offsetHeight
|
|
76
76
|
if ( $.is.exist( contentHeight ) ) {
|
|
77
77
|
if ( val_open ) {
|
|
78
78
|
Wrap.css( {
|
|
@@ -80,37 +80,37 @@ const Component: React.FC<amotify.mols.Accordion.Params> = ( params ) => {
|
|
|
80
80
|
} ).await( 200 ).css( {
|
|
81
81
|
maxHeight: 'unset',
|
|
82
82
|
overflow: ( params.overflow as any ) || 'unset'
|
|
83
|
-
} )
|
|
83
|
+
} )
|
|
84
84
|
} else {
|
|
85
85
|
Wrap
|
|
86
86
|
.css( {
|
|
87
87
|
maxHeight: 0 + 'px',
|
|
88
88
|
overflow: 'hidden'
|
|
89
|
-
} )
|
|
89
|
+
} )
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
-
},[ val_open ] )
|
|
94
|
+
},[ val_open ] )
|
|
95
95
|
|
|
96
96
|
if ( accordionID ) {
|
|
97
97
|
useStore.set( {
|
|
98
98
|
key: 'Accordion-' + accordionID,
|
|
99
99
|
value: {
|
|
100
100
|
open: () => {
|
|
101
|
-
set_open( true )
|
|
102
|
-
// params.open = true
|
|
101
|
+
set_open( true )
|
|
102
|
+
// params.open = true
|
|
103
103
|
},
|
|
104
104
|
close: () => {
|
|
105
|
-
set_open( false )
|
|
106
|
-
// params.open = false
|
|
105
|
+
set_open( false )
|
|
106
|
+
// params.open = false
|
|
107
107
|
},
|
|
108
108
|
toggle: () => {
|
|
109
|
-
set_open( !val_open )
|
|
110
|
-
// params.open = !val_open
|
|
109
|
+
set_open( !val_open )
|
|
110
|
+
// params.open = !val_open
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
|
-
} )
|
|
113
|
+
} )
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
return <Box
|
|
@@ -124,22 +124,22 @@ const Component: React.FC<amotify.mols.Accordion.Params> = ( params ) => {
|
|
|
124
124
|
data-accordion-content-id={ val_contentID }
|
|
125
125
|
{ ...others }
|
|
126
126
|
/>
|
|
127
|
-
</Box
|
|
127
|
+
</Box>
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
const Accordion: amotify.mols.Accordion.SetParams = Component as any
|
|
131
131
|
Accordion.fn = {
|
|
132
132
|
open: ( id ) => {
|
|
133
|
-
let component = useStore.get( 'Accordion-' + id )
|
|
134
|
-
!component || component.open()
|
|
133
|
+
let component = useStore.get( 'Accordion-' + id )
|
|
134
|
+
!component || component.open()
|
|
135
135
|
},
|
|
136
136
|
close: ( id ) => {
|
|
137
|
-
let component = useStore.get( 'Accordion-' + id )
|
|
138
|
-
!component || component.close()
|
|
137
|
+
let component = useStore.get( 'Accordion-' + id )
|
|
138
|
+
!component || component.close()
|
|
139
139
|
},
|
|
140
140
|
toggle: ( id ) => {
|
|
141
|
-
let component = useStore.get( 'Accordion-' + id )
|
|
142
|
-
!component || component.toggle()
|
|
141
|
+
let component = useStore.get( 'Accordion-' + id )
|
|
142
|
+
!component || component.toggle()
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
145
|
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import React from 'react'
|
|
1
|
+
import React from 'react'
|
|
2
2
|
import {
|
|
3
3
|
FAI
|
|
4
|
-
} from '@atoms'
|
|
4
|
+
} from '@atoms'
|
|
5
5
|
import {
|
|
6
6
|
Buttons
|
|
7
|
-
} from '@fn'
|
|
7
|
+
} from '@fn'
|
|
8
8
|
|
|
9
9
|
const {
|
|
10
10
|
Anchor
|
|
11
|
-
} = Buttons
|
|
11
|
+
} = Buttons
|
|
12
12
|
|
|
13
13
|
export const LinkifyText: React.FC<amotify.mols.LinkifyTextProps> = ( props ) => {
|
|
14
14
|
let {
|
|
15
15
|
text,
|
|
16
16
|
placeholder
|
|
17
|
-
} = props
|
|
17
|
+
} = props
|
|
18
18
|
|
|
19
|
-
let Description: ReactElement[] = []
|
|
19
|
+
let Description: ReactElement[] = []
|
|
20
20
|
|
|
21
21
|
if ( text ) {
|
|
22
|
-
let urls: string[] = []
|
|
22
|
+
let urls: string[] = []
|
|
23
23
|
|
|
24
24
|
text = text.replace( /https?:\/\/[^\s|\n|\r]*/ig,( ...args: any ) => {
|
|
25
|
-
let url = args[ 0 ]
|
|
26
|
-
urls.push( url )
|
|
25
|
+
let url = args[ 0 ]
|
|
26
|
+
urls.push( url )
|
|
27
27
|
|
|
28
|
-
return '[$_url]'
|
|
29
|
-
} )
|
|
30
|
-
let parts = text.split( '[$_url]' )
|
|
28
|
+
return '[$_url]'
|
|
29
|
+
} )
|
|
30
|
+
let parts = text.split( '[$_url]' )
|
|
31
31
|
for ( let index = 0; index <= parts.length - 1; index++ ) {
|
|
32
|
-
let part = parts[ index ]
|
|
33
|
-
let url = urls[ index ]
|
|
34
|
-
Description.push( part )
|
|
32
|
+
let part = parts[ index ]
|
|
33
|
+
let url = urls[ index ]
|
|
34
|
+
Description.push( part )
|
|
35
35
|
if ( index < parts.length - 1 ) {
|
|
36
36
|
Description.push( <Anchor.Link
|
|
37
37
|
key={ 'Link-' + index }
|
|
@@ -39,14 +39,14 @@ export const LinkifyText: React.FC<amotify.mols.LinkifyTextProps> = ( props ) =>
|
|
|
39
39
|
newTab
|
|
40
40
|
>
|
|
41
41
|
{ url }
|
|
42
|
-
</Anchor.Link> )
|
|
42
|
+
</Anchor.Link> )
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
} else if ( placeholder ) {
|
|
46
|
-
Description = [ placeholder ]
|
|
46
|
+
Description = [ placeholder ]
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
return <>
|
|
50
50
|
{ Description }
|
|
51
|
-
|
|
51
|
+
</>
|
|
52
52
|
}
|
package/src/molecules/List.tsx
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import React from 'react'
|
|
1
|
+
import React from 'react'
|
|
2
2
|
import {
|
|
3
3
|
Flex
|
|
4
|
-
} from '@atoms'
|
|
4
|
+
} from '@atoms'
|
|
5
5
|
|
|
6
6
|
export const List: React.FC<amotify.mols.List.Params> = ( params ) => {
|
|
7
7
|
let {
|
|
8
8
|
rows,
|
|
9
9
|
rowStyles: DefaultRowStyles,
|
|
10
10
|
...others
|
|
11
|
-
} = params
|
|
11
|
+
} = params
|
|
12
12
|
|
|
13
13
|
let rowArray = rows.map( ( row ) => {
|
|
14
14
|
let {
|
|
15
15
|
children,
|
|
16
16
|
...others
|
|
17
|
-
} = row
|
|
17
|
+
} = row
|
|
18
18
|
|
|
19
19
|
return <Flex
|
|
20
20
|
{ ...DefaultRowStyles }
|
|
21
21
|
{ ...others }
|
|
22
22
|
children={ children }
|
|
23
|
-
|
|
23
|
+
/>
|
|
24
24
|
} )
|
|
25
25
|
|
|
26
26
|
return <Flex
|
|
27
27
|
{ ...others }
|
|
28
28
|
flexType='col'
|
|
29
29
|
children={ rowArray }
|
|
30
|
-
|
|
30
|
+
/>
|
|
31
31
|
}
|
package/src/preload.tsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { launchID } from './@variables'
|
|
1
|
+
import { launchID } from './@variables'
|
|
2
2
|
|
|
3
3
|
let tags: Jsmin.CreateElement.Args[] = [
|
|
4
4
|
{
|
|
@@ -24,48 +24,8 @@ let tags: Jsmin.CreateElement.Args[] = [
|
|
|
24
24
|
<div class="AMOTIFY_be AMOTIFY_be_root"></div>
|
|
25
25
|
`
|
|
26
26
|
}
|
|
27
|
-
]
|
|
27
|
+
]
|
|
28
28
|
for ( let tag of tags ) {
|
|
29
|
-
if ( tag.id && $( '#' + tag.id )[ 0 ] ) continue
|
|
30
|
-
$.createElement( tag )
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
// ( () => {
|
|
34
|
-
// let amotifyRoot = document.createElement( 'amotify-app' );
|
|
35
|
-
// amotifyRoot.id = launchID;
|
|
36
|
-
// let shadow = amotifyRoot.attachShadow( { mode: 'open' } );
|
|
37
|
-
|
|
38
|
-
// let link = document.createElement( 'link' );
|
|
39
|
-
// link.href = 'https://public.comun.jp/@env/amotify/v3.1.7/amotify.min.css';
|
|
40
|
-
// link.rel = 'stylesheet';
|
|
41
|
-
|
|
42
|
-
// let sheetDIV = document.createElement( 'div' );
|
|
43
|
-
// sheetDIV.className = 'AMOTIFY_be AMOTIFY_be_sheet';
|
|
44
|
-
|
|
45
|
-
// let snackbar = document.createElement( 'div' );
|
|
46
|
-
// snackbar.className = 'AMOTIFY_be AMOTIFY_be_snackbar';
|
|
47
|
-
// snackbar.innerHTML = 'HELLO';
|
|
48
|
-
|
|
49
|
-
// let loader = document.createElement( 'div' );
|
|
50
|
-
// loader.className = 'AMOTIFY_be AMOTIFY_be_loader';
|
|
51
|
-
|
|
52
|
-
// let root = document.createElement( 'div' );
|
|
53
|
-
// root.className = 'AMOTIFY_be AMOTIFY_be_root';
|
|
54
|
-
|
|
55
|
-
// shadow.appendChild( link );
|
|
56
|
-
// shadow.appendChild( sheetDIV );
|
|
57
|
-
// shadow.appendChild( snackbar );
|
|
58
|
-
// shadow.appendChild( loader );
|
|
59
|
-
// shadow.appendChild( root );
|
|
60
|
-
|
|
61
|
-
// document.body.appendChild( amotifyRoot );
|
|
62
|
-
|
|
63
|
-
// // amotifyRoot.shadowRoot.get
|
|
64
|
-
|
|
65
|
-
// setTimeout( () => {
|
|
66
|
-
// let a = amotifyRoot.shadowRoot!.querySelectorAll( '.AMOTIFY_be_snackbar' );
|
|
67
|
-
|
|
68
|
-
// a[ 0 ].innerHTML = 'AAAA';
|
|
69
|
-
// console.log( '======' );
|
|
70
|
-
// },1000 );
|
|
71
|
-
// } )();
|
|
29
|
+
if ( tag.id && $( '#' + tag.id )[ 0 ] ) continue
|
|
30
|
+
$.createElement( tag )
|
|
31
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import React from 'react'
|
|
1
|
+
import React from 'react'
|
|
2
2
|
import {
|
|
3
3
|
Box
|
|
4
|
-
} from '@atoms'
|
|
4
|
+
} from '@atoms'
|
|
5
5
|
import {
|
|
6
6
|
Column
|
|
7
|
-
} from '@mols'
|
|
7
|
+
} from '@mols'
|
|
8
8
|
import {
|
|
9
9
|
Buttons,
|
|
10
10
|
Input,
|
|
11
11
|
Inputs,
|
|
12
12
|
Table
|
|
13
|
-
} from '@fn'
|
|
13
|
+
} from '@fn'
|
|
14
14
|
|
|
15
|
-
import style from './style.module.scss'
|
|
15
|
+
import style from './style.module.scss'
|
|
16
16
|
|
|
17
17
|
export const PlayGround: React.FC<{}> = () => {
|
|
18
18
|
return <>
|
|
@@ -46,7 +46,7 @@ export const PlayGround: React.FC<{}> = () => {
|
|
|
46
46
|
},
|
|
47
47
|
] }
|
|
48
48
|
onUpdateValidValue={ ( { value } ) => {
|
|
49
|
-
console.log( value )
|
|
49
|
+
console.log( value )
|
|
50
50
|
} }
|
|
51
51
|
/>
|
|
52
52
|
|
|
@@ -54,7 +54,7 @@ export const PlayGround: React.FC<{}> = () => {
|
|
|
54
54
|
submitOption={ {
|
|
55
55
|
formName: 'test',
|
|
56
56
|
callback: ( form ) => {
|
|
57
|
-
console.log( form )
|
|
57
|
+
console.log( form )
|
|
58
58
|
}
|
|
59
59
|
} }
|
|
60
60
|
>
|
|
@@ -92,5 +92,5 @@ export const PlayGround: React.FC<{}> = () => {
|
|
|
92
92
|
/>
|
|
93
93
|
</Box>
|
|
94
94
|
</Column>
|
|
95
|
-
|
|
95
|
+
</>
|
|
96
96
|
}
|
package/webpack.config.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
module.exports = ( () => {
|
|
2
|
-
let path = require( 'path' )
|
|
3
|
-
let MinCss = require( 'mini-css-extract-plugin' )
|
|
4
|
-
let RemoveWasteFiles = require( 'webpack-remove-empty-scripts' )
|
|
5
|
-
let webpack = require( 'webpack' )
|
|
6
|
-
let TerserPlugin = require( 'terser-webpack-plugin' )
|
|
7
|
-
let BundleAnalyzerPlugin = require( 'webpack-bundle-analyzer' ).BundleAnalyzerPlugin
|
|
8
|
-
let BrowserSync = require( 'browser-sync-webpack-plugin' )
|
|
2
|
+
let path = require( 'path' )
|
|
3
|
+
let MinCss = require( 'mini-css-extract-plugin' )
|
|
4
|
+
let RemoveWasteFiles = require( 'webpack-remove-empty-scripts' )
|
|
5
|
+
let webpack = require( 'webpack' )
|
|
6
|
+
let TerserPlugin = require( 'terser-webpack-plugin' )
|
|
7
|
+
let BundleAnalyzerPlugin = require( 'webpack-bundle-analyzer' ).BundleAnalyzerPlugin
|
|
8
|
+
let BrowserSync = require( 'browser-sync-webpack-plugin' )
|
|
9
9
|
let BrowserSync_option = {
|
|
10
10
|
host: 'localhost',
|
|
11
11
|
// port: 10201,
|
|
@@ -25,7 +25,7 @@ module.exports = ( () => {
|
|
|
25
25
|
let entry = {
|
|
26
26
|
'amotify': './src/launch.tsx'
|
|
27
27
|
}
|
|
28
|
-
console.log( entry )
|
|
28
|
+
console.log( entry )
|
|
29
29
|
return {
|
|
30
30
|
mode: 'development',
|
|
31
31
|
entry: entry,
|
|
@@ -143,4 +143,4 @@ module.exports = ( () => {
|
|
|
143
143
|
}
|
|
144
144
|
},
|
|
145
145
|
}
|
|
146
|
-
} )()
|
|
146
|
+
} )()
|