Skip to content

Commit

Permalink
ignore vertx
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmaulanaa committed Jul 31, 2018
1 parent 572d5ef commit c3e3765
Show file tree
Hide file tree
Showing 4 changed files with 325 additions and 249 deletions.
5 changes: 3 additions & 2 deletions config/webpack.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ module.exports = function (options) {
},

plugins: [
new webpack.IgnorePlugin(/vertx/),

/**
* Plugin: DefinePlugin
Expand All @@ -142,7 +143,7 @@ module.exports = function (options) {
'process.env': {
'ENV': JSON.stringify(METADATA.ENV),
'NODE_ENV': JSON.stringify(METADATA.ENV),
'HMR': METADATA.HMR
'HMR': METADATA.HMR
}
}),

Expand Down Expand Up @@ -213,7 +214,7 @@ module.exports = function (options) {

/*
* Plugin: OccurrenceOrderPlugin
* Description: Webpack gives your modules and chunks ids to identify them. This plugin
* Description: Webpack gives your modules and chunks ids to identify them. This plugin
* varies the distribution of the ids to get the smallest id length for often used ids.
* Also ensures consistent build hashes for HMR.
*
Expand Down
25 changes: 14 additions & 11 deletions config/webpack.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ const ModuleConcatenationPlugin = require('webpack/lib/optimize/ModuleConcatenat
const UglifyJsPlugin = require('webpack/lib/optimize/UglifyJsPlugin');
const OptimizeJsPlugin = require('optimize-js-plugin');

const webpack = require('webpack');

/**
* Webpack Constants
*/
Expand Down Expand Up @@ -126,25 +128,26 @@ module.exports = function (env) {
* See: http://webpack.github.io/docs/configuration.html#plugins
*/
plugins: [
new webpack.IgnorePlugin(/vertx/),

/**
* Scope Hoisting is the flagship feature of webpack 3. One of webpack’s
* trade-offs when bundling was that each module in your bundle would be
* wrapped in individual function closures. These wrapper functions made
* it slower for your JavaScript to execute in the browser. In comparison,
* tools like Closure Compiler and RollupJS ‘hoist’ or concatenate the
* scope of all your modules into one closure and allow for your code to
* Scope Hoisting is the flagship feature of webpack 3. One of webpack’s
* trade-offs when bundling was that each module in your bundle would be
* wrapped in individual function closures. These wrapper functions made
* it slower for your JavaScript to execute in the browser. In comparison,
* tools like Closure Compiler and RollupJS ‘hoist’ or concatenate the
* scope of all your modules into one closure and allow for your code to
* have a faster execution time in the browser.
*
*
* See: https://webpack.js.org/plugins/module-concatenation-plugin/
*/
new ModuleConcatenationPlugin(),

/**
* This plugin will cause hashes to be based on the relative path of the
* module, generating a four character string as the module id. Suggested
* This plugin will cause hashes to be based on the relative path of the
* module, generating a four character string as the module id. Suggested
* for use in production.
*
*
* See: https://webpack.js.org/plugins/hashed-module-ids-plugin/
*/
new HashedModuleIdsPlugin(),
Expand Down Expand Up @@ -306,7 +309,7 @@ module.exports = function (env) {
*
* See: https://github.com/th0r/webpack-bundle-analyzer
*/

],

node: {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Sideka",
"productName": "Sideka",
"version": "2.3.4",
"version": "2.3.5",
"description": "Sideka",
"keywords": [
"angular",
Expand Down Expand Up @@ -238,7 +238,7 @@
"webpack-node-externals": "^1.6.0",
"write-file-webpack-plugin": "^4.0.2",
"xlsx": "0.11.4",
"yarn": "^1.5.1",
"yarn": "^1.9.2",
"zone.js": "~0.8.11"
},
"build": {
Expand Down
Loading

0 comments on commit c3e3765

Please sign in to comment.