forked from muenzpraeger/create-lwc-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lwc-services.config.js
45 lines (45 loc) · 1.41 KB
/
lwc-services.config.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
// This configuration represents the default settings of `lwc-services`.
// Place this file into the root of your LWC app directory, and configure the files as needed.
module.exports = {
// Default directory for the build output
buildDir: './dist',
// Default bundler
bundler: 'webpack',
// Default mode for build command
mode: 'development',
// Clears the build directory on every build
noclear: false,
// Default directory for source files
sourceDir: './src/client',
// List of resources for copying to the build folder
resources: [{ from: 'src/resources', to: 'dist/resources' }],
// Default webpack server options for watch command
devServer: {
port: 3001,
host: 'localhost',
open: false,
stats: 'errors-only',
noInfo: true,
contentBase: './src/client'
},
// Default server options for serve command
server: {
port: 3002,
host: 'localhost',
open: false,
customConfig: './src/server/api.js'
},
// LWC Compiler options for production mode.
// Find the detailed description here: https://www.npmjs.com/package/@lwc/compiler
lwcCompilerOutput: {
production: {
compat: false,
env: {
NODE_ENV: 'production'
}
}
},
lwcCompilerStylesheetConfig: {
customProperties: { allowDefinition: true }
}
}