@papillonbits/library 0.45.0 → 0.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/a11y/index.js +1 -2
- package/array/index.js +16 -40
- package/auth/index.js +0 -16
- package/boolean/index.js +0 -1
- package/date/index.js +0 -2
- package/event/index.js +0 -4
- package/hooks/index.js +0 -1
- package/jest/config.js +5 -5
- package/jest/index.js +0 -2
- package/jest/setup.js +0 -5
- package/number/index.js +6 -8
- package/object/index.js +0 -5
- package/package.json +2 -2
- package/pagination/index.js +11 -26
- package/sort/index.js +2 -26
- package/store/index.js +0 -1
- package/store/mock/index.js +0 -4
- package/storybook/index.js +0 -1
- package/storybook/setup/mainSetup.js +10 -23
- package/string/index.js +2 -7
- package/webpack/index.js +0 -23
- package/webpack/loader/babelLoader.js +1 -2
- package/webpack/loader/cssLoader.js +2 -2
- package/webpack/loader/fontLoader.js +1 -1
- package/webpack/loader/imageLoader.js +1 -1
- package/webpack/loader/markdownLoader.js +1 -1
- package/webpack/loader/postCSSLoader.js +1 -1
- package/webpack/loader/sassLoader.js +1 -1
- package/webpack/loader/svgrLoader.js +1 -2
- package/webpack/plugin/bannerPlugin.js +1 -3
- package/webpack/plugin/cleanWebpackPlugin.js +7 -9
- package/webpack/plugin/copyWebpackPlugin.js +2 -4
- package/webpack/plugin/cssMinimizerWebpackPlugin.js +1 -3
- package/webpack/plugin/dotenvWebpack.js +7 -10
- package/webpack/plugin/hotModuleReplacementPlugin.js +1 -3
- package/webpack/plugin/htmlWebpackPlugin.js +7 -11
- package/webpack/plugin/miniCSSExtractPlugin.js +1 -5
- package/webpack/plugin/moduleConcatenationPlugin.js +1 -3
- package/webpack/plugin/webpackBundleAnalyzer.js +1 -2
- package/webpack/plugin/webpackManifestPlugin.js +1 -4
- package/webpack/server/devServer.js +1 -1
- package/webpack/setup/commonSetup.js +1 -12
- package/webpack/setup/developmentSetup.js +8 -13
- package/webpack/setup/productionSetup.js +8 -13
|
@@ -4,25 +4,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.getWebpackProductionSetup = getWebpackProductionSetup;
|
|
7
|
-
|
|
7
|
+
var _webpackMerge = require("webpack-merge");
|
|
8
8
|
var _cssLoader = require("../loader/cssLoader");
|
|
9
|
-
|
|
10
9
|
var _bannerPlugin = require("../plugin/bannerPlugin");
|
|
11
|
-
|
|
12
10
|
var _cssMinimizerWebpackPlugin = require("../plugin/cssMinimizerWebpackPlugin");
|
|
13
|
-
|
|
14
11
|
var _dotenvWebpack = require("../plugin/dotenvWebpack");
|
|
15
|
-
|
|
16
12
|
var _miniCSSExtractPlugin = require("../plugin/miniCSSExtractPlugin");
|
|
17
|
-
|
|
18
13
|
var _webpackBundleAnalyzer = require("../plugin/webpackBundleAnalyzer");
|
|
19
|
-
|
|
20
14
|
function getWebpackProductionSetup(_ref) {
|
|
21
|
-
var
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
15
|
+
var webpackCommonSetup = _ref.webpackCommonSetup,
|
|
16
|
+
environmentVariablesFilePath = _ref.environmentVariablesFilePath,
|
|
17
|
+
micrositeUrlPath = _ref.micrositeUrlPath,
|
|
18
|
+
micrositeFolderPaths = _ref.micrositeFolderPaths,
|
|
19
|
+
packageJSON = _ref.packageJSON;
|
|
20
|
+
return (0, _webpackMerge.merge)([webpackCommonSetup, {
|
|
26
21
|
mode: 'production',
|
|
27
22
|
devtool: false,
|
|
28
23
|
output: {
|
|
@@ -56,5 +51,5 @@ function getWebpackProductionSetup(_ref) {
|
|
|
56
51
|
}), 'postcss-loader', 'sass-loader']
|
|
57
52
|
}]
|
|
58
53
|
}
|
|
59
|
-
};
|
|
54
|
+
}]);
|
|
60
55
|
}
|