Browse Source

webpack tabler

tags/0.1
Guillaume 3 years ago
parent
commit
0e596481c0
10 changed files with 23 additions and 197 deletions
  1. +0
    -12
      Resources/assets/app.js
  2. +0
    -1
      Resources/assets/apps/backend/common/common.js
  3. +0
    -6
      Resources/assets/apps/backend/common/common.scss
  4. +3
    -4
      Resources/assets/apps/tabler/app.tabler.js
  5. +9
    -0
      Resources/assets/apps/tabler/tabler.min.css
  6. +9
    -0
      Resources/assets/apps/tabler/tabler.min.js
  7. +0
    -11
      Resources/assets/bootstrap.js
  8. +0
    -3
      Resources/assets/styles/app.css
  9. +1
    -5
      Resources/public/build/entrypoints.json
  10. +1
    -155
      Resources/public/build/runtime.js

+ 0
- 12
Resources/assets/app.js View File

@@ -1,12 +0,0 @@
/*
* Welcome to your app's main JavaScript file!
*
* We recommend including the built version of this JavaScript file
* (and its CSS file) in your base layout (base.html.twig).
*/

// any CSS you import will output into a single css file (app.css in this case)
import './styles/app.css';

// start the Stimulus application
import './bootstrap';

+ 0
- 1
Resources/assets/apps/backend/common/common.js View File

@@ -1 +0,0 @@


+ 0
- 6
Resources/assets/apps/backend/common/common.scss View File

@@ -1,6 +0,0 @@

$color: red ;

body {
background-color: $color ;
}

Resources/assets/apps/backend/common/app.common.js → Resources/assets/apps/tabler/app.tabler.js View File

@@ -6,10 +6,9 @@
*/

// any CSS you import will output into a single css file (app.css in this case)
import './common.scss';
import './common.js';
import '../../tabler/src/js/tabler.js';
import '../../tabler/src/scss/tabler.scss';


// start the Stimulus application
//import './bootstrap';

alert('Yo !') ;

+ 9
- 0
Resources/assets/apps/tabler/tabler.min.css
File diff suppressed because it is too large
View File


+ 9
- 0
Resources/assets/apps/tabler/tabler.min.js
File diff suppressed because it is too large
View File


+ 0
- 11
Resources/assets/bootstrap.js View File

@@ -1,11 +0,0 @@
import { startStimulusApp } from '@symfony/stimulus-bridge';

// Registers Stimulus controllers from controllers.json and in the controllers/ directory
export const app = startStimulusApp(require.context(
'@symfony/stimulus-bridge/lazy-controller-loader!./controllers',
true,
/\.(j|t)sx?$/
));

// register any custom, 3rd party controllers here
// app.register('some_controller_name', SomeImportedController);

+ 0
- 3
Resources/assets/styles/app.css View File

@@ -1,3 +0,0 @@
body {
background-color: lightgray;
}

+ 1
- 5
Resources/public/build/entrypoints.json View File

@@ -2,11 +2,7 @@
"entrypoints": {
"backend-common": {
"js": [
"/build/runtime.js",
"/build/backend-common.js"
],
"css": [
"/build/backend-common.css"
"/build/runtime.js"
]
}
}

+ 1
- 155
Resources/public/build/runtime.js
File diff suppressed because it is too large
View File


Loading…
Cancel
Save