-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.local.config.js
102 lines (92 loc) · 1.7 KB
/
build.local.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
const path = require('path');
const APP_DIR = path.resolve(__dirname, './src');
const MONACO_DIR = path.resolve(__dirname, './node_modules/monaco-editor');
module.exports = {
vite: false,
outputDir: 'build',
vendor: false,
entry: {
app: 'src/app',
background: 'src/background/index',
},
outputAssetsPath: {
js: 'js',
css: 'css',
},
publicPath: './',
hash: false,
sourceMap: true,
modeConfig: {
local: {
hash: false,
publicPath: 'https://localhost:3333',
},
},
lessLoaderOptions: {
javascriptEnabled: true,
},
polyfill: false,
minify: false,
plugins: [
[
'build-plugin-icestark',
{
type: 'framework',
},
],
[
'build-plugin-fusion',
{
disableModularImport: true,
themePackage: '@alifd/theme-design-pro',
themeConfig: {
'css-prefix': 'next-icestark-',
},
},
],
[
'build-plugin-moment-locales',
{
locales: [
'zh-cn',
],
},
],
[
'build-plugin-ignore-style',
{
libraryName: '@alifd/next',
},
],
],
webpackLoaders: {
css: [{
test: /\.css$/,
include: APP_DIR,
loaders: {
'style-loader': { },
'css-loader': {
options: {
modules: true,
namedExport: true,
},
},
},
}, {
test: /\.css$/,
include: MONACO_DIR,
loaders: {
'style-loader': {},
'css-loader': {},
},
}],
},
webpackPlugins: {
'monaco-editor-webpack-plugin': {
options: {
identifier: 'module1',
languages: ['json'],
},
},
},
};