Add quill bundles

This commit is contained in:
Daniel Supernault 2019-06-20 12:42:36 -06:00
parent 1dbfcae041
commit 3612990d43
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7
4 changed files with 8 additions and 2 deletions

1
resources/assets/js/quill.js vendored Normal file
View file

@ -0,0 +1 @@
window.Quill = require('quill');

1
resources/assets/sass/quill.scss vendored Normal file
View file

@ -0,0 +1 @@
@import '~quill/dist/quill.snow.css';

View file

@ -38,7 +38,7 @@
@endsection
@push('styles')
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/quill/1.3.6/quill.snow.min.css" integrity="sha256-qc/vMbPSg7/JfxMwKeMv3wlx7ojG33FXfYfO0UJIsc0=" crossorigin="anonymous" />
<link rel="stylesheet" href="{{mix('css/quill.css')}}"/>
<style type="text/css">
.ql-container {
box-sizing: border-box;
@ -52,7 +52,7 @@
</style>
@endpush
@push('scripts')
<script src="https://cdnjs.cloudflare.com/ajax/libs/quill/1.3.6/quill.min.js" integrity="sha256-3oYBiGm16EW9wQH8G1VhGh43XgivbO5KaB10RhA9phE=" crossorigin="anonymous"></script>
<script src="{{mix('js/quill.js')}}"></script>
<script>
window.editor = new Quill('#editor', {

4
webpack.mix.js vendored
View file

@ -8,6 +8,9 @@ mix.sass('resources/assets/sass/app.scss', 'public/css', {
})
.sass('resources/assets/sass/landing.scss', 'public/css', {
implementation: require('node-sass')
})
.sass('resources/assets/sass/quill.scss', 'public/css', {
implementation: require('node-sass')
}).version();
mix.js('resources/assets/js/app.js', 'public/js')
@ -21,6 +24,7 @@ mix.js('resources/assets/js/app.js', 'public/js')
.js('resources/assets/js/search.js', 'public/js')
.js('resources/assets/js/developers.js', 'public/js')
.js('resources/assets/js/loops.js', 'public/js')
.js('resources/assets/js/quill.js', 'public/js')
// .js('resources/assets/js/embed.js', 'public')
// .js('resources/assets/js/direct.js', 'public/js')
.extract([