forked from EclipseFdn/solstice-assets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.mix.js
49 lines (44 loc) · 2 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
47
48
49
/*!
* 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 <[email protected]>
*
* SPDX-License-Identifier: EPL-2.0
*/
let mix = require('laravel-mix');
mix.options({uglify: {uglifyOptions: {compress: false, output: {comments: true}}}});
mix.setPublicPath('dist');
mix.setResourceRoot('../');
// Default CSS
mix.less('less/quicksilver/styles.less', 'dist/css/quicksilver.css');
mix.less('less/quicksilver/jakarta/styles.less', 'dist/css/jakarta.css');
mix.less('less/quicksilver/eclipse-ide/styles.less', 'dist/css/eclipse-ide.css');
mix.less('less/quicksilver/locationtech/styles.less', 'dist/css/locationtech.css');
mix.less('less/quicksilver/polarsys/styles.less', 'dist/css/polarsys.css');
mix.less('less/solstice/_barebone/styles.less', 'dist/css/barebone.css');
mix.less('less/solstice/_barebone/footer.less', 'dist/css/barebone-footer.css');
mix.less('less/solstice/table.less', 'dist/css/table.css');
mix.less('less/solstice/styles.less', 'dist/css/solstice.css');
// Copy cookieconsent files
mix.copy('node_modules/cookieconsent/build/cookieconsent.min.css', 'dist/css/vendor/cookieconsent.min.css');
mix.copy('node_modules/cookieconsent/src/cookieconsent.js', 'dist/js/vendor/cookieconsent.min.js');
// Drupal sites
mix.less('less/solstice/drupal.less', 'dist/css/drupal-solstice.css');
// JavaScript
mix.scripts([
'./node_modules/jquery/dist/jquery.min.js',
'./node_modules/bootstrap/dist/js/bootstrap.min.js',
'./node_modules/jquery-match-height/dist/jquery.matchHeight-min.js',
'./node_modules/feather-icons/dist/feather.min.js',
'./node_modules/cookieconsent/src/cookieconsent.js',
'js/eclipsefdn.videos.js',
'js/solstice.cookieconsent.js',
'js/solstice.cookies.js',
'js/solstice.js',
'js/solstice.donate.js'
], 'dist/js/solstice.js');