forked from youseries/ureport
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
youseries
committed
Apr 17, 2018
1 parent
10269cc
commit faa1df0
Showing
15 changed files
with
81 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
76 changes: 1 addition & 75 deletions
76
ureport2-console/src/main/resources/ureport-asserts/js/designer.bundle.js
Large diffs are not rendered by default.
Oops, something went wrong.
19 changes: 1 addition & 18 deletions
19
ureport2-console/src/main/resources/ureport-asserts/js/preview.bundle.js
Large diffs are not rendered by default.
Oops, something went wrong.
12 changes: 1 addition & 11 deletions
12
ureport2-console/src/main/resources/ureport-asserts/js/searchform.bundle.js
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,39 +14,32 @@ | |
"email": "[email protected]", | ||
"url": "http://www.bstek.com" | ||
}, | ||
"license": "Apache-2.0", | ||
"license": "The Apache-2.0 License", | ||
"dependencies": { | ||
"bootbox": "^4.4.0", | ||
"bootstrap": "^3.3.7", | ||
"bootstrap-colorpicker": "^2.5.0", | ||
"chart.js": "^2.6.0", | ||
"codemirror": "^5.23.0", | ||
"completer": "^0.1.3", | ||
"handsontable": "^0.32.0-beta2", | ||
"handsontable": "^2.0.0", | ||
"jquery": "^3.1.1", | ||
"jquery-contextmenu": "^2.4.2", | ||
"node-uuid": "^1.4.7", | ||
"raphael": "^2.2.7", | ||
"save-svg-as-png": "^1.2.0", | ||
"save-svg-as-png": "^1.3.2", | ||
"undo-manager": "^1.0.5" | ||
}, | ||
"devDependencies": { | ||
"babel-cli": "^6.18.0", | ||
"babel-core": "^6.18.2", | ||
"babel-loader": "^6.2.8", | ||
"babel-preset-es2015": "^6.18.0", | ||
"babel-preset-react": "^6.16.0", | ||
"clean-webpack-plugin": "^0.1.14", | ||
"css-loader": "^0.26.1", | ||
"babel-cli": "^6.26.0", | ||
"babel-core": "^6.26.0", | ||
"babel-loader": "^7.1.4", | ||
"babel-preset-env": "^1.6.1", | ||
"css-loader": "^0.28.11", | ||
"expose-loader": "^0.7.1", | ||
"file-loader": "^0.9.0", | ||
"json-loader": "^0.5.7", | ||
"redux-devtools": "^3.3.1", | ||
"redux-devtools-dock-monitor": "^1.1.1", | ||
"redux-devtools-log-monitor": "^1.1.1", | ||
"style-loader": "^0.13.1", | ||
"url-loader": "^0.5.7", | ||
"webpack": "^1.13.3", | ||
"webpack-cleanup-plugin": "^0.4.1" | ||
"uglifyjs-webpack-plugin": "^1.2.4", | ||
"url-loader": "^0.5.7" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,57 @@ | ||
/** | ||
* Created by Jacky.gao on 2016/5/17. | ||
* Created by Jacky.Gao on 2018-04-15. | ||
* Base on Webpack4 | ||
*/ | ||
var webpack = require('webpack'); | ||
var WebpackCleanupPlugin = require('webpack-cleanup-plugin'); | ||
module.exports = { | ||
const path=require('path'); | ||
const UglifyJsPlugin = require('uglifyjs-webpack-plugin'); | ||
module.exports={ | ||
mode:'production', | ||
entry: { | ||
designer:'./src/index.js', | ||
searchform:'./src/form/index.js', | ||
preview:'./src/preview.js' | ||
}, | ||
output: { | ||
path: '../ureport2-console/src/main/resources/ureport-asserts/js', | ||
filename: '[name].bundle.js' | ||
output:{ | ||
path:path.resolve('../ureport2-console/src/main/resources/ureport-asserts/js'), | ||
filename:'[name].bundle.js' | ||
}, | ||
plugins: [ | ||
new webpack.optimize.UglifyJsPlugin({ | ||
compress: { | ||
warnings: false | ||
}, | ||
output: { | ||
comments: false | ||
} | ||
}), | ||
new webpack.DefinePlugin({ | ||
'process.env':{ | ||
'NODE_ENV': JSON.stringify('production') | ||
plugins:[ | ||
new UglifyJsPlugin( | ||
{ | ||
uglifyOptions: { | ||
warnings: false, | ||
output: { | ||
comments: false | ||
}, | ||
compress: { | ||
drop_console: true | ||
} | ||
} | ||
} | ||
}), | ||
new WebpackCleanupPlugin() | ||
) | ||
], | ||
module: { | ||
loaders: [ | ||
module:{ | ||
rules:[ | ||
{ | ||
test: /\.(jsx|js)?$/, | ||
exclude: /(node_modules|bower_components)/, | ||
loader: 'babel', | ||
query: { | ||
presets: ['react', 'es2015'], | ||
compact:true | ||
} | ||
test: /\.js$/, | ||
exclude: /node_modules/, | ||
loader: "babel-loader" | ||
}, | ||
{ | ||
test: /\.css$/, | ||
loader: "style-loader!css-loader" | ||
test:/\.css$/, | ||
use: [{ loader: 'style-loader' }, { loader: 'css-loader' }] | ||
}, | ||
{ | ||
test: /\.(eot|woff|woff2|ttf|svg|png|jpg)$/, | ||
loader: 'url-loader?limit=1000000&name=[name]-[hash].[ext]' | ||
}, | ||
{ | ||
test: /\.json$/, | ||
loader: 'json-loader' | ||
use: [ | ||
{ | ||
loader: 'url-loader', | ||
options: { | ||
limit: 10000000 | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters