File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " codex.editor" ,
3
3
"version" : " 2.7.12" ,
4
- "description" : " Codex Editor. Native JS, based on API and Open Source" ,
4
+ "description" : " CodeX Editor. Native JS, based on API and Open Source" ,
5
5
"main" : " dist/codex-editor.js" ,
6
6
"types" : " ./types/index.d.ts" ,
7
7
"scripts" : {
8
8
"build" : " rimraf dist/* && yarn svg && yarn build:prod" ,
9
9
"build:win" : " rimraf dist && yarn svg:win && yarn build:prod" ,
10
- "build:dev" : " webpack --mode development --progress --display-error-details --display-entrypoints" ,
11
- "build:prod" : " webpack --mode production --progress --display-error-details --display-entrypoints " ,
10
+ "build:dev" : " webpack --mode development --progress --display-error-details --display-entrypoints --watch " ,
11
+ "build:prod" : " webpack --mode production" ,
12
12
"svg:win" : " if not exist dist md dist && yarn svg" ,
13
13
"svg" : " svg-sprite-generate -d src/assets/ -o dist/sprite.svg" ,
14
14
"pull_tools" : " git submodule update --init --recursive"
Original file line number Diff line number Diff line change @@ -29,28 +29,27 @@ module.exports = (env, argv) => {
29
29
entry : {
30
30
'codex-editor' : [ '@babel/polyfill/noConflict' , './src/codex.ts' ]
31
31
} ,
32
+
32
33
output : {
33
34
path : path . resolve ( __dirname , 'dist' ) ,
34
35
filename : '[name].js' ,
35
36
library : [ 'CodexEditor' ] ,
36
37
libraryTarget : 'umd'
37
38
} ,
38
39
39
- watch : true ,
40
40
watchOptions : {
41
41
aggregateTimeout : 50
42
42
} ,
43
43
44
44
/**
45
45
* Tell webpack what directories should be searched when resolving modules.
46
46
*/
47
- resolve : {
48
- modules : [ path . join ( __dirname , 'src' ) , 'node_modules' ] ,
47
+ resolve : {
48
+ modules : [ path . join ( __dirname , 'src' ) , 'node_modules' ] ,
49
49
extensions : [ '.js' , '.ts' ]
50
50
} ,
51
51
52
52
plugins : [
53
-
54
53
/** Pass variables into modules */
55
54
new webpack . DefinePlugin ( {
56
55
NODE_ENV : JSON . stringify ( NODE_ENV ) ,
@@ -64,8 +63,8 @@ module.exports = (env, argv) => {
64
63
new LicenseWebpackPlugin ( )
65
64
] ,
66
65
67
- module : {
68
- rules : [
66
+ module : {
67
+ rules : [
69
68
{
70
69
test : / \. t s $ / ,
71
70
use : [
You can’t perform that action at this time.
0 commit comments