@emulsify/core 1.2.0 → 1.3.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/.history/.husky/commit-msg_20240729171216 +4 -0
- package/.history/.husky/commit-msg_20240729172358 +2 -0
- package/.history/.husky/pre-commit_20240729171216 +4 -0
- package/.history/.husky/pre-commit_20240729172429 +2 -0
- package/.history/config/webpack/{loaders_20240401184511.js → loaders_20240730152304.js} +3 -3
- package/.history/config/webpack/loaders_20240730152315.js +87 -0
- package/.history/config/webpack/plugins_20240730152746.js +77 -0
- package/.history/config/webpack/plugins_20240730152818.js +76 -0
- package/.history/config/webpack/plugins_20240730153144.js +76 -0
- package/.history/config/webpack/plugins_20240730153215.js +76 -0
- package/.history/config/webpack/{webpack.common_20240607090919.js → webpack.common_20240730152548.js} +5 -3
- package/.history/config/webpack/webpack.common_20240730152652.js +76 -0
- package/.history/package-lock_20240722091648.json +34023 -0
- package/.history/package-lock_20240729171049.json +34023 -0
- package/.history/package-lock_20240729171107.json +34023 -0
- package/.history/package-lock_20240729171136.json +34023 -0
- package/.history/package_20240729171200.json +135 -0
- package/.history/package_20240729171707.json +135 -0
- package/.history/package_20240729171737.json +135 -0
- package/.history/package_20240729171750.json +135 -0
- package/.history/package_20240729171809.json +135 -0
- package/.history/package_20240729171834.json +135 -0
- package/.history/package_20240729171854.json +135 -0
- package/.history/package_20240729172054.json +135 -0
- package/.history/package_20240729172133.json +135 -0
- package/.history/package_20240729174630.json +135 -0
- package/.history/package_20240730153116.json +136 -0
- package/.history/package_20240806081212.json +135 -0
- package/.history/package_20240806081229.json +135 -0
- package/.history/package_20240806081258.json +135 -0
- package/.history/package_20240806081538.json +135 -0
- package/.history/package_20240806082035.json +135 -0
- package/.history/package_20240806082121.json +135 -0
- package/.history/package_20240806082142.json +135 -0
- package/.history/package_20240806082313.json +135 -0
- package/.history/package_20240806082418.json +135 -0
- package/.husky/commit-msg +0 -2
- package/.husky/pre-commit +0 -2
- package/package.json +16 -16
- package/.history/config/webpack/plugins_20240401184104.js +0 -48
- /package/.history/config/webpack/{loaders_20240610084138.js → loaders_20240731075844.js} +0 -0
- /package/.history/config/webpack/{plugins_20240607163148.js → plugins_20240731075839.js} +0 -0
- /package/.history/config/webpack/{webpack.common_20240607163224.js → webpack.common_20240731075910.js} +0 -0
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/* eslint-disable no-underscore-dangle */
|
|
2
|
-
const path = require('path');
|
|
3
|
-
const webpack = require('webpack');
|
|
4
|
-
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
|
|
5
|
-
const _MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
6
|
-
const _ImageminPlugin = require('imagemin-webpack-plugin').default;
|
|
7
|
-
const _SpriteLoaderPlugin = require('svg-sprite-loader/plugin');
|
|
8
|
-
const glob = require('glob');
|
|
9
|
-
|
|
10
|
-
const imagePath = path.resolve(__dirname, '../../../../assets/images');
|
|
11
|
-
|
|
12
|
-
const MiniCssExtractPlugin = new _MiniCssExtractPlugin({
|
|
13
|
-
filename: '[name].css',
|
|
14
|
-
chunkFilename: '[id].css',
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
const ImageminPlugin = new _ImageminPlugin({
|
|
18
|
-
disable: process.env.NODE_ENV !== 'production',
|
|
19
|
-
externalImages: {
|
|
20
|
-
context: imagePath,
|
|
21
|
-
sources: glob.sync(path.resolve(imagePath, '**/*.{png,jpg,gif,svg}')),
|
|
22
|
-
destination: imagePath,
|
|
23
|
-
},
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
const SpriteLoaderPlugin = new _SpriteLoaderPlugin({
|
|
27
|
-
plainSprite: true,
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
const ProgressPlugin = new webpack.ProgressPlugin();
|
|
31
|
-
|
|
32
|
-
module.exports = {
|
|
33
|
-
ProgressPlugin,
|
|
34
|
-
MiniCssExtractPlugin,
|
|
35
|
-
ImageminPlugin,
|
|
36
|
-
SpriteLoaderPlugin,
|
|
37
|
-
CleanWebpackPlugin: new CleanWebpackPlugin({
|
|
38
|
-
protectWebpackAssets: false, // Required for removal of extra, unwanted dist/css/*.js files.
|
|
39
|
-
cleanOnceBeforeBuildPatterns: ['!*.{png,jpg,gif,svg}'],
|
|
40
|
-
cleanAfterEveryBuildPatterns: [
|
|
41
|
-
'remove/**',
|
|
42
|
-
'!js',
|
|
43
|
-
'css/**/*.js', // Remove all unwanted, auto generated JS files from dist/css folder.
|
|
44
|
-
'css/**/*.js.map',
|
|
45
|
-
'!*.{png,jpg,gif,svg}',
|
|
46
|
-
],
|
|
47
|
-
}),
|
|
48
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|