-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.mix.js
46 lines (39 loc) · 1.4 KB
/
webpack.mix.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
const mix = require('laravel-mix');
require('mix-html-builder');
mix.disableNotifications();
mix.setPublicPath('./docs/')
mix.html({
htmlRoot: './src/*.html', // Your html root file(s)
output: './', // The html output folder
partialRoot: './src/partials', // default partial path
layoutRoot: './src/layouts', // default partial path
minify: {
removeComments: true
}
});
mix
.sass('./src/css/style.scss', 'docs/css/style.css')
.combine([
// Basic Jquery and Jquery plugins
'./node_modules/jquery/dist/jquery.min.js',
'./node_modules/jquery-modal/jquery.modal.min.js',
// Medium Editor related
'./node_modules/medium-editor/dist/js/medium-editor.min.js',
'./node_modules/medium-editor-tables/dist/js/medium-editor-tables.min.js',
'./node_modules/medium-editor-autolist/dist/autolist.min.js',
'./node_modules/medium-button/dist/medium-button.min.js',
'./node_modules/print-this/printThis.js',
'./src/js/vanilla-color-picker.js',
'./src/js/color-picker.js',
// File saver related
'./node_modules/file-saver/dist/FileSaver.js',
'./node_modules/html2canvas/dist/html2canvas.min.js',
'./src/js/jquery.wordexport.js',
// Latex Related
// './node_modules/mathjax/es5/tex-mml-chtml.js', //disable it for font base path.
],'docs/js/lib.js')
.js([
'./src/js/app.js',
], 'docs/js/app.js')
.sourceMaps()
.version();