1
|
|
|
// webpack.settings.js - webpack settings config |
2
|
|
|
|
3
|
|
|
// node modules |
4
|
|
|
require('dotenv').config(); |
5
|
|
|
|
6
|
|
|
// Webpack settings exports |
7
|
|
|
// noinspection WebpackConfigHighlighting |
8
|
|
|
module.exports = { |
9
|
|
|
name: "Transcoder", |
10
|
|
|
copyright: "nystudio107", |
11
|
|
|
paths: { |
12
|
|
|
src: { |
13
|
|
|
base: "./src/assetbundles/transcoder/src/", |
14
|
|
|
css: "./src/assetbundles/transcoder/src/css/", |
15
|
|
|
js: "./src/assetbundles/transcoder/src/js/" |
16
|
|
|
}, |
17
|
|
|
dist: { |
18
|
|
|
base: "./src/assetbundles/transcoder/dist/", |
19
|
|
|
clean: [ |
20
|
|
|
'**/*', |
21
|
|
|
] |
22
|
|
|
}, |
23
|
|
|
templates: "./src/templates/" |
24
|
|
|
}, |
25
|
|
|
urls: { |
26
|
|
|
publicPath: () => process.env.PUBLIC_PATH || "", |
27
|
|
|
}, |
28
|
|
|
vars: { |
29
|
|
|
cssName: "styles" |
30
|
|
|
}, |
31
|
|
|
entries: { |
32
|
|
|
"transcoder": "Transcoder.js", |
33
|
|
|
"welcome": "Welcome.js" |
34
|
|
|
}, |
35
|
|
|
babelLoaderConfig: { |
36
|
|
|
exclude: [ |
37
|
|
|
/(node_modules|bower_components)/ |
38
|
|
|
], |
39
|
|
|
}, |
40
|
|
|
copyWebpackConfig: [ |
41
|
|
|
], |
42
|
|
|
devServerConfig: { |
43
|
|
|
public: () => process.env.DEVSERVER_PUBLIC || "http://localhost:8080", |
44
|
|
|
host: () => process.env.DEVSERVER_HOST || "localhost", |
45
|
|
|
poll: () => process.env.DEVSERVER_POLL || false, |
46
|
|
|
port: () => process.env.DEVSERVER_PORT || 8080, |
47
|
|
|
https: () => process.env.DEVSERVER_HTTPS || false, |
48
|
|
|
}, |
49
|
|
|
manifestConfig: { |
50
|
|
|
basePath: "" |
51
|
|
|
}, |
52
|
|
|
purgeCssConfig: { |
53
|
|
|
paths: [ |
54
|
|
|
"./src/templates/**/*.{twig,html}", |
55
|
|
|
"./node_modules/vuetable-2/src/components/**/*.{vue,html}", |
56
|
|
|
"./src/assetbundles/transcoder/src/vue/**/*.{vue,html}" |
57
|
|
|
], |
58
|
|
|
whitelist: [ |
59
|
|
|
"./src/assetbundles/transcoder/src/css/components/**/*.{css,pcss}" |
60
|
|
|
], |
61
|
|
|
whitelistPatterns: [], |
62
|
|
|
extensions: [ |
63
|
|
|
"html", |
64
|
|
|
"js", |
65
|
|
|
"twig", |
66
|
|
|
"vue" |
67
|
|
|
] |
68
|
|
|
}, |
69
|
|
|
saveRemoteFileConfig: [ |
70
|
|
|
], |
71
|
|
|
createSymlinkConfig: [ |
72
|
|
|
], |
73
|
|
|
}; |
74
|
|
|
|