Browse Source

use webpack to load select2 css

experimental
Paweł Jedwabny 4 years ago
parent
commit
2720f92582
2 changed files with 3 additions and 1 deletions
  1. +1
    -1
      index.php
  2. +2
    -0
      src/index.js

+ 1
- 1
index.php View File

@@ -61,7 +61,7 @@ ob_start();
<meta name="robots" content="NOINDEX, NOARCHIVE">
<script type='text/javascript' src='dist/index.js'></script>
<?php
$csses = array('dist/styles.css', 'vendor/bower-asset/gentelella/build/css/custom.css','vendor/bower-asset/gentelella/vendors/select2/dist/css/select2.css','vendor/bower-asset/gentelella/vendors/font-awesome/css/font-awesome.min.css');
$csses = array('dist/styles.css', 'vendor/bower-asset/gentelella/build/css/custom.css','vendor/bower-asset/gentelella/vendors/font-awesome/css/font-awesome.min.css');
foreach($csses as $css)
print('<link href="'.$css.'" rel="stylesheet" type="text/css">');
?>


+ 2
- 0
src/index.js View File

@@ -8,6 +8,8 @@ import 'jquery-ui/ui/widgets/sortable';
import 'jquery-ui/themes/base/all.css'

import 'select2';
import 'select2/dist/css/select2.css';

import 'script-loader!../libs/HistoryKeeper/EventManager.js';
import 'script-loader!../libs/HistoryKeeper/History.js';



Loading…
Cancel
Save