Doplneni css pro fullcalendar

This commit is contained in:
Michal Kváček
2018-11-19 00:37:40 +01:00
parent 15c0f0b54a
commit 6787b86170
3 changed files with 48 additions and 52 deletions
-3
View File
@@ -17,6 +17,3 @@ requireAll (require.context ('./src/assets/js', true, /\.js$/));
// SASS
import './src/assets/scss/app.scss';
// nefunguje kalendar z nejakeho duvodu - mam blbe cestu
// import '~fullcalendar/dist/fullcalendar.css';
+2
View File
@@ -15,6 +15,8 @@
@import "~bootstrap/scss/grid";
@import " ~fullcalendar/dist/fullcalendar.min.css";
$fa-font-path: "~font-awesome/fonts";
@import '~font-awesome/scss/font-awesome.scss';
+46 -49
View File
@@ -1,52 +1,49 @@
const path = require('path');
const path = require ('path');
module.exports = {
entry: './index.js',
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'dist')
},
module: {
rules: [
{
test: /.(ttf|otf|eot|svg|woff(2)?)(\?[a-z0-9]+)?$/,
use: [{
loader: 'file-loader',
options: {
name: '[name].[ext]',
outputPath: 'fonts/', // where the fonts will go
publicPath: '/dist/fonts' // override the default path
}
}]
},
{
test: /\.(scss)$/,
use: [
{
// Adds CSS to the DOM by injecting a `<style>` tag
loader: 'style-loader'
},
{
// Interprets `@import` and `url()` like `import/require()` and will resolve them
loader: 'css-loader'
},
{
// Loader for webpack to process CSS with PostCSS
loader: 'postcss-loader',
options: {
plugins: function () {
return [
require('autoprefixer')
];
}
}
},
{
// Loads a SASS/SCSS file and compiles it to CSS
loader: 'sass-loader'
}
]
}
]
}
entry: './index.js',
output: {
filename: 'bundle.js',
path: path.resolve (__dirname, 'dist')
},
module: {
rules: [
{
test: /.(ttf|otf|eot|svg|woff(2)?)(\?[a-z0-9]+)?$/,
use: [{
loader: 'file-loader',
options: {
name: '[name].[ext]',
outputPath: 'fonts/', // where the fonts will go
publicPath: '/dist/fonts' // override the default path
}
}]
},
{
test: /\.(scss)$/,
use: [
{
loader: 'style-loader'
},
{
loader: 'css-loader'
},
{
// Loader for webpack to process CSS with PostCSS
loader: 'postcss-loader',
options: {
plugins: function () {
return [
require ('autoprefixer')
];
}
}
},
{
loader: 'sass-loader'
}
]
}
]
}
};