Browse Source

Minor update in assets files

pull/1/head
Franck J 2 years ago
parent
commit
f884b42846
  1. 3
      assets/css/app.css
  2. 4
      assets/js/app.js
  3. 0
      assets/scss/global.scss
  4. 13
      webpack.config.js

3
assets/css/app.css

@ -1,3 +1,6 @@
/* the ~ allows you to reference things in node_modules */
@import "~bootstrap/dist/css/bootstrap.css";
body {
background-color: floralwhite !important;
color: #312f31 !important;

4
assets/js/app.js

@ -7,14 +7,14 @@
// any CSS you import will output into a single css file (app.css in this case)
import '../css/app.css';
require('../css/global.scss');
import '../scss/global.scss';
// Need jQuery? Install it with "yarn add jquery", then uncomment to import it.
import $ from 'jquery';
// this "modifies" the jquery module: adding behavior to it
// the bootstrap module doesn't export/return anything
require('bootstrap');
import 'bootstrap';
// or you can include specific pieces
// require('bootstrap/js/dist/tooltip');

0
assets/css/global.scss → assets/scss/global.scss

13
webpack.config.js

@ -11,9 +11,14 @@ if (!Encore.isRuntimeEnvironmentConfigured()) {
Encore
// directory where compiled assets will be stored
.setOutputPath('public/build/')
// public path used by the web server to access the output path
.setPublicPath('/build')
// only needed for CDN's or sub-directory deploy
//.setManifestKeyPrefix('build/')
// copyFiles() method to copy images files into the final output directory
.copyFiles({
from: './assets/images',
from: './assets/images',
// optional target path, relative to the output dir
to: 'images/[path][name].[ext]',
@ -23,10 +28,6 @@ Encore
// only copy files matching this pattern
//pattern: /\.(png|jpg|jpeg)$/
})
// public path used by the web server to access the output path
.setPublicPath('/build')
// only needed for CDN's or sub-directory deploy
//.setManifestKeyPrefix('build/')
/*
* ENTRY CONFIG
@ -84,6 +85,6 @@ Encore
// uncomment if you use API Platform Admin (composer req api-admin)
//.enableReactPreset()
//.addEntry('admin', './assets/js/admin.js')
;
;
module.exports = Encore.getWebpackConfig();

Loading…
Cancel
Save