@@ -14,7 +14,7 @@ module.exports = {
1414 alias : {
1515 Utilities : path . resolve ( __dirname , 'ui/js/' )
1616 } ,
17- extensions : [ '.wasm' , '.mjs' , '. js', '.json' , '.jsx' ]
17+ extensions : [ '.js' , '.json' , '.jsx' ]
1818 } ,
1919 module : {
2020 rules : [
@@ -39,24 +39,18 @@ module.exports = {
3939 {
4040 loader : "file-loader" ,
4141 options : {
42- name : path => {
43- console . log ( "es ist ein BILD!" ) ;
44- console . log ( path ) ;
45- if ( ! / n o d e _ m o d u l e s | b o w e r _ c o m p o n e n t s / . test ( path ) ) {
42+ name : loader_path => {
43+ if ( ! / n o d e _ m o d u l e s | b o w e r _ c o m p o n e n t s / . test ( loader_path ) ) {
4644 return "app/images/[name].[ext]?[hash]" ;
4745 }
4846
4947 return (
5048 "app/images/vendor/" +
51- path . replace ( / \\ / g, "/" )
52- . replace (
53- / ( ( .* ( n o d e _ m o d u l e s | b o w e r _ c o m p o n e n t s ) ) | i m a g e s | i m a g e | i m g | a s s e t s ) \/ / g,
54- ''
55- ) +
49+ loader_path . replace ( / \\ / g, "/" )
50+ . replace ( / ( ( .* ( n o d e _ m o d u l e s ) ) | i m a g e s | i m a g e | i m g | a s s e t s ) \/ / g, '' ) +
5651 '?[hash]'
5752 ) ;
5853 } ,
59- publicPath : 'app/'
6054 }
6155 }
6256 ]
@@ -67,26 +61,19 @@ module.exports = {
6761 {
6862 loader : "file-loader" ,
6963 options : {
70- name : path => {
71- console . log ( "testausgabe" ) ;
72- console . log ( path ) ;
73- if ( ! / n o d e _ m o d u l e s | b o w e r _ c o m p o n e n t s / . test ( path ) ) {
64+ name : loader_path => {
65+ if ( ! / n o d e _ m o d u l e s | b o w e r _ c o m p o n e n t s / . test ( loader_path ) ) {
7466 return 'app/fonts/[name].[ext]?[hash]' ;
7567 }
7668
7769 return (
78- 'app/fonts' +
79- '/vendor/' +
80- path
70+ 'app/fonts/vendor/' +
71+ loader_path
8172 . replace ( / \\ / g, '/' )
82- . replace (
83- / ( ( .* ( n o d e _ m o d u l e s | b o w e r _ c o m p o n e n t s ) ) | f o n t s | f o n t | a s s e t s ) \/ / g,
84- ''
85- ) +
73+ . replace ( / ( ( .* ( n o d e _ m o d u l e s ) ) | f o n t s | f o n t | a s s e t s ) \/ / g, '' ) +
8674 '?[hash]'
8775 ) ;
8876 } ,
89- publicPath : 'app/'
9077 }
9178 }
9279 ]
0 commit comments