This repository has been archived by the owner on Oct 13, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
webpack.mix.js
67 lines (59 loc) · 1.92 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*!
* 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
*/
// Configure
require('./webpack-solstice-assets.mix');
let mix = require('laravel-mix');
mix.EclipseFdnSolsticeAssets();
// Paths
mix.setPublicPath('docs/dist');
mix.setResourceRoot('../');
// Copy the logo from src'
mix.copy(
'images/logo/eclipse-foundation-white-orange.svg',
'docs/dist/images/logo/eclipse-foundation-white-orange.svg'
);
mix.copy(
'images/template/placeholders',
'docs/dist/images/template/placeholders'
);
// Default CSS
mix.less('less/quicksilver/styles.less', 'docs/dist/css/quicksilver.css');
mix.less('less/quicksilver/jakarta/styles.less', 'docs/dist/css/jakarta.css');
mix.less(
'less/quicksilver/eclipse-ide/styles.less',
'docs/dist/css/eclipse-ide.css'
);
mix.less('less/solstice/_barebone/styles.less', 'docs/dist/css/barebone.css');
mix.less(
'less/solstice/_barebone/footer.less',
'docs/dist/css/barebone-footer.css'
);
mix.less('less/solstice/table.less', 'docs/dist/css/table.css');
mix.less('less/solstice/styles.less', 'docs/dist/css/solstice.css');
// Copy cookieconsent files
mix.copy(
'node_modules/cookieconsent/build/cookieconsent.min.css',
'docs/dist/css/vendor/cookieconsent.min.css'
);
mix.copy(
'node_modules/cookieconsent/src/cookieconsent.js',
'docs/dist/js/vendor/cookieconsent.min.js'
);
// Drupal sites
mix.less('less/solstice/drupal.less', 'docs/dist/css/drupal-solstice.css');
mix.less(
'less/quicksilver/newsletter/drupal.less',
'docs/dist/css/newsletter.css'
);
mix.js(['js/main.js'], 'docs/dist/js/solstice.js');
mix.js(['js/solstice/eclipsefdn.members-list.js'], 'docs/dist/js/eclipsefdn.members-list.js');