Skip to content

Commit

Permalink
Merge dbe37d9 into bb09300
Browse files Browse the repository at this point in the history
  • Loading branch information
patw0929 committed Jul 15, 2018
2 parents bb09300 + dbe37d9 commit f7d41e9
Show file tree
Hide file tree
Showing 7 changed files with 1,077 additions and 565 deletions.
5 changes: 1 addition & 4 deletions config/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

var webpack = require('webpack');
var paths = require('./paths');
var CopyWebpackPlugin = require('copy-webpack-plugin');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var InterpolateHtmlPlugin = require('react-dev-utils/InterpolateHtmlPlugin');
Expand Down Expand Up @@ -40,6 +39,7 @@ module.exports = {
path: paths.appBuild,
pathinfo: true,
filename: '[name].js',
chunkFilename: '[name].js',
publicPath: publicPath,
library: 'IntlTelInput',
libraryTarget: 'umd'
Expand Down Expand Up @@ -161,9 +161,6 @@ module.exports = {
minifyURLs: true
}
}),
new CopyWebpackPlugin([
{ from: 'src/libphonenumber.js', to: './' },
]),
new webpack.DefinePlugin(env),
// Minify the code.
new webpack.optimize.UglifyJsPlugin({
Expand Down
4 changes: 1 addition & 3 deletions example/example.js

Large diffs are not rendered by default.

447 changes: 1 addition & 446 deletions example/libphonenumber.js

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions example/main.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@
"babel-eslint": "^7.1.1",
"babel-jest": "^18.0.0",
"babel-loader": "6.2.10",
"babel-plugin-dynamic-import-node": "^2.0.0",
"babel-plugin-syntax-dynamic-import": "^6.18.0",
"babel-plugin-transform-class-properties": "^6.19.0",
"babel-plugin-transform-object-rest-spread": "^6.20.2",
"babel-plugin-transform-react-constant-elements": "^6.9.1",
"babel-plugin-transform-react-remove-prop-types": "^0.4.13",
"babel-plugin-transform-regenerator": "^6.21.0",
"babel-plugin-transform-runtime": "^6.15.0",
"babel-plugin-dynamic-import-node": "^2.0.0",
"babel-plugin-syntax-dynamic-import": "^6.18.0",
"babel-preset-env": "^1.1.8",
"babel-preset-react": "^6.16.0",
"babel-preset-react-app": "^2.0.1",
Expand Down Expand Up @@ -92,7 +92,7 @@
"sinon": "^1.17.4",
"style-loader": "0.13.1",
"url-loader": "~0.5.7",
"webpack": "beta",
"webpack": "^2.6",
"webpack-dev-server": "1.16.2",
"xmlhttprequest": "^1.8.0"
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/IntlTelInputApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ class IntlTelInputApp extends Component {
});
}
} else {
import('../libphonenumber').then(() => {
import(/* webpackChunkName: "libphonenumber" */ '../libphonenumber').then(() => {
this.loadUtils();
this.utilsScriptDeferred.resolve();
});
Expand Down
Loading

0 comments on commit f7d41e9

Please sign in to comment.