-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsnowpack.deploy.config.js
51 lines (47 loc) · 1.27 KB
/
snowpack.deploy.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
46
47
48
49
50
51
module.exports = {
mount: {
'src/Tools/accountSettings': '/accountSettings',
'src/Tools/content': '/content',
'src/Tools/course': '/course',
'src/Tools/docs': '/docs',
'src/Tools/gradebook': '/gradebook',
'src/Tools/library': '/library',
'src/Tools/signin': '/signin',
'src/Tools/signout': '/signout',
'src/Tools/_framework': '/_framework',
'src/Media': { "url": "/media", "static": true, "resolve": false },
'src/Media/profile_pictures': '/profile_pictures',
'src/Api': '/api',
'src/Home': '/',
'src/Viewer': '/viewer',
'src/_reactComponents': '/_reactComponents',
'src/_utils': '/_utils',
'src/Api_temp': '/api',
},
plugins: [
'@snowpack/plugin-react-refresh',
'@snowpack/plugin-dotenv',
[
'snowpack-plugin-raw-file-loader',
{
exts: ['.doenet', '.txt'], // Add file extensions saying what files should be loaded as strings in your snowpack application. Default: '.txt'
},
],
],
optimize: {
// bundle: true,
// minify: true,
// target: 'es2020',
// treeshake: true,
},
packageOptions: {
polyfillNode: true,
knownEntrypoints: ["crypto-js/sha1"],
},
buildOptions: {
watch: false,
out: 'dist',
clean: true,
// minify: true
},
};