/* | |||||
* 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'; |
$color: red ; | |||||
body { | |||||
background-color: $color ; | |||||
} |
*/ | */ | ||||
// any CSS you import will output into a single css file (app.css in this case) | // 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 | // start the Stimulus application | ||||
//import './bootstrap'; | //import './bootstrap'; | ||||
alert('Yo !') ; |
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); |
body { | |||||
background-color: lightgray; | |||||
} |
"entrypoints": { | "entrypoints": { | ||||
"backend-common": { | "backend-common": { | ||||
"js": [ | "js": [ | ||||
"/build/runtime.js", | |||||
"/build/backend-common.js" | |||||
], | |||||
"css": [ | |||||
"/build/backend-common.css" | |||||
"/build/runtime.js" | |||||
] | ] | ||||
} | } | ||||
} | } |