File tree 5 files changed +11
-17
lines changed
5 files changed +11
-17
lines changed Original file line number Diff line number Diff line change 10
10
},
11
11
"extends" : " eslint:recommended" ,
12
12
"parserOptions" : {
13
+ "ecmaVersion" : 2018 ,
13
14
"sourceType" : " module" ,
14
15
"ecmaFeatures" : {
15
16
"jsx" : true ,
Original file line number Diff line number Diff line change 1
1
.idea /
2
2
codebase /
3
+ dist /
3
4
node_modules /
4
5
* .log
Original file line number Diff line number Diff line change 6
6
"scripts" : {
7
7
"test" : " echo \" Error: no test specified\" && exit 1" ,
8
8
"lint" : " eslint sources/" ,
9
- "build" : " webpack --env. production true " ,
10
- "module" : " webpack --env. production true --env.module true " ,
11
- "standalone" : " webpack --env. production true --env. module true --env.standalone true " ,
12
- "start" : " webpack-dev-server --host 0.0.0.0"
9
+ "build" : " webpack --mode= production" ,
10
+ "module" : " webpack --mode= production --env module " ,
11
+ "standalone" : " webpack --mode= production --env module --env standalone " ,
12
+ "start" : " webpack-dev-server --mode=development -- host 0.0.0.0"
13
13
},
14
14
"keywords" : [
15
15
" webix" ,
Original file line number Diff line number Diff line change @@ -23,6 +23,6 @@ export default class GradesRadarView extends JetView {
23
23
} ;
24
24
}
25
25
init ( view ) {
26
- this . on ( this . app , "student:select" , id => view . parse ( getGrades ( id ) ) )
26
+ this . on ( this . app , "student:select" , id => view . parse ( getGrades ( id ) ) ) ;
27
27
}
28
28
}
Original file line number Diff line number Diff line change 1
1
var path = require ( "path" ) ;
2
2
var webpack = require ( "webpack" ) ;
3
3
4
- module . exports = function ( env ) {
4
+ module . exports = function ( env , settings ) {
5
5
6
6
var pack = require ( "./package.json" ) ;
7
7
var MiniCssExtractPlugin = require ( "mini-css-extract-plugin" ) ;
8
8
9
- var production = ! ! ( env && env . production === "true" ) ;
10
- var asmodule = ! ! ( env && env . module === "true" ) ;
11
- var standalone = ! ! ( env && env . standalone === "true" ) ;
9
+ var production = settings . mode === "production" ;
10
+ var asmodule = ! ! ( env && env . module ) ;
11
+ var standalone = ! ! ( env && env . standalone ) ;
12
12
13
13
var babelSettings = {
14
14
extends : path . join ( __dirname , '/.babelrc' )
@@ -57,14 +57,6 @@ module.exports = function(env) {
57
57
]
58
58
} ;
59
59
60
- if ( production ) {
61
- config . plugins . push (
62
- new webpack . optimize . UglifyJsPlugin ( {
63
- test : / \. j s $ /
64
- } )
65
- ) ;
66
- }
67
-
68
60
if ( asmodule ) {
69
61
if ( ! standalone ) {
70
62
config . externals = config . externals || { } ;
You can’t perform that action at this time.
0 commit comments