Repository navigation
Expand file tree
/
Copy pathwebpack.mix.js
More file actions
52 lines (48 loc) · 2.28 KB
/
Copy pathwebpack.mix.js
File metadata and controls
52 lines (48 loc) · 2.28 KB
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
47
48
49
50
51
52
/*!
* Copyright (c) 2018 Eclipse Foundation, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* Contributors:
* Christopher Guindon <chris.guindon@eclipse-foundation.org>
*
* SPDX-License-Identifier: EPL-2.0
*/
let mix = require('laravel-mix');
mix.options({uglify: {uglifyOptions: {compress: false, output: {comments: true}}}});
mix.setPublicPath('static/assets');
mix.setResourceRoot('../');
// CSS
mix.sass('static/assets/stylesheets/bootstrap.scss', 'static/assets/css/bootstrap.css');
mix.less('./node_modules/eclipsefdn-solstice-assets/less/_components/eclipsefdn-video.less', 'static/assets/css/eclipsefdn-video.css');
mix.styles([
'static/assets/css/bootstrap.css',
'static/assets/css/eclipsefdn-video.css',
'node_modules/cookieconsent/build/cookieconsent.min.css',
'static/assets/css/icomoon.css',
'node_modules/prismjs/themes/prism.css',
'node_modules/prismjs/plugins/prism-line-highlight.css',
'node_modules/prismjs/plugins/prism-line-numbers.css'
], 'static/assets/css/bootstrap.css');
mix.copy('./node_modules/font-awesome/css/font-awesome.min.css', 'static/assets/css/font-awesome.css');
// JavaScript
mix.scripts([
'./node_modules/jquery/dist/jquery.min.js',
'./node_modules/bootstrap/dist/js/bootstrap.min.js',
'./node_modules/cookieconsent/src/cookieconsent.js',
'./node_modules/prismjs/prism.js',
'./node_modules/prismjs/components/prism-css.min.js',
'./node_modules/prismjs/components/prism-clike.min.js',
'./node_modules/prismjs/components/prism-javascript.min.js',
'./node_modules/prismjs/components/prism-java.min.js',
'./node_modules/prismjs/components/prism-bash.min.js',
'./node_modules/prismjs/plugins/prism-line-highlight.min.js',
'./node_modules/prismjs/plugins/prism-line-numbers.min.js',
'./node_modules/eclipsefdn-solstice-assets/js/solstice.cookieconsent.js',
'./node_modules/jquery-match-height/dist/jquery.matchHeight-min.js',
'./node_modules/eclipsefdn-solstice-assets/js/eclipsefdn.videos.js',
'./static/assets/js/configs.js'
], './static/assets/js/main.js');
mix.copy('./node_modules/bootstrap-sass/assets/javascripts/*.js', 'static/js/bootstrap');