-
Notifications
You must be signed in to change notification settings - Fork 52
/
webpack.mix.js
28 lines (25 loc) · 1.14 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
const mix = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel application. By default, we are compiling the Sass
| file for the application as well as bundling up all the JS files.
|
*/
mix.js('resources/js/app.js', 'public/js')
.extract(['vue', 'lodash', 'popper.js', 'jquery', 'bootstrap', 'axios', 'socket.io-client'])
.sass('resources/sass/app.scss', 'public/css')
.version()
// tinymce
.scripts([
'node_modules/tinymce/jquery.tinymce.js',
'node_modules/tinymce/jquery.tinymce.min.js',
'node_modules/tinymce/tinymce.js',
'node_modules/tinymce/tinymce.min.js'
], 'public/node_modules/tinymce/tinymce.js')
// .copyDirectory('node_modules/tinymce/plugins', 'public/node_modules/tinymce/plugins')
.copyDirectory('node_modules/tinymce/skins', 'public/node_modules/tinymce/skins')
.copyDirectory('node_modules/tinymce/themes', 'public/node_modules/tinymce/themes');