forked from craftcms/spoke-and-chain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.settings.js
47 lines (45 loc) · 1.28 KB
/
webpack.settings.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
// webpack.settings.js - webpack settings config
// node modules
require('dotenv').config();
// Webpack settings exports
// noinspection WebpackConfigHighlighting
module.exports = {
name: "Spoke & Chain",
copyright: "Pixel & Tonic",
paths: {
src: {
base: "./src/",
css: "./src/css/",
js: "./src/js/"
},
dist: "./web/assets/dist/",
templates: "./templates/"
},
urls: {
live: process.env.LIVE_SITE_URL || "http://example.com",
local: process.env.PRIMARY_SITE_URL || "http://local.craft.test/",
publicPath: process.env.PUBLIC_PATH || "/assets/dist/"
},
vars: {
cssName: "styles"
},
entries: {
"app": "app.js"
},
devServerConfig: {
public: () => process.env.DEVSERVER_PUBLIC || "http://localhost:8080",
host: () => process.env.DEVSERVER_HOST || "localhost",
poll: () => process.env.DEVSERVER_POLL || false,
port: () => process.env.DEVSERVER_PORT || 8080,
https: () => process.env.DEVSERVER_HTTPS || false,
},
manifestConfig: {
basePath: ""
},
createSymlinkConfig: [
// {
// origin: "img/favicons/favicon.ico",
// symlink: "./favicon.ico"
// }
],
};