@geira/iconfont 0.2.3 → 0.2.4

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/webpack.config.js CHANGED
@@ -1,98 +1,98 @@
1
- const path = require('path');
2
-
3
- const HtmlWebpackPlugin = require('html-webpack-plugin');
4
- const {CleanWebpackPlugin} = require('clean-webpack-plugin');
5
- const MiniCssExtractPlugin = require('mini-css-extract-plugin');
6
- const CopyWebpackPlugin = require('copy-webpack-plugin');
7
-
8
- module.exports = () => {
9
- return {
10
- mode : 'production',
11
- entry : {
12
- data : './src/js/data.js',
13
- main : './src/js/script.js',
14
- utils : './src/js/utils.js',
15
- 'geira-icons': './src/scss/geira-icons.scss',
16
- styles : './src/scss/styles.scss'
17
- },
18
- output : {
19
- filename: '[name].min.js',
20
- path : path.resolve(__dirname, 'dist')
21
- },
22
- devtool : 'source-map',
23
- resolve : {
24
- extensions: ['.js']
25
- },
26
- devServer: {
27
- contentBase: './dist'
28
- },
29
- plugins : [
30
- new CleanWebpackPlugin(),
31
- new HtmlWebpackPlugin({
32
- filename: 'index.html',
33
- template: 'src/index.html',
34
- chunks : ['data', 'main', 'geira-icons', 'styles']
35
- }),
36
- new HtmlWebpackPlugin({
37
- filename: 'usage.html',
38
- template: 'src/usage.html',
39
- chunks : ['data', 'utils', 'geira-icons', 'styles']
40
- }),
41
- new CopyWebpackPlugin({
42
- patterns: [
43
- {
44
- from: './src/fonts',
45
- to : './fonts'
46
- }
47
- ]
48
- }),
49
- new CopyWebpackPlugin({
50
- patterns: [
51
- {
52
- from: './src/scss/geira-icons.scss',
53
- to : './'
54
- }
55
- ]
56
- }),
57
- new CopyWebpackPlugin({
58
- patterns: [
59
- {
60
- from: './src/js/icons.json',
61
- to : './'
62
- }
63
- ]
64
- }),
65
- new CopyWebpackPlugin({
66
- patterns: [
67
- {
68
- from: './src/images',
69
- to : './images'
70
- }
71
- ]
72
- }),
73
- new MiniCssExtractPlugin({
74
- filename : '[name].min.css',
75
- chunkFilename: '[id].css'
76
- })
77
- ],
78
- module : {
79
- rules: [
80
- {
81
- test: /\.s[ac]ss$/i,
82
- use : [
83
- MiniCssExtractPlugin.loader,
84
- {
85
- loader : 'css-loader',
86
- options: {
87
- url: false
88
- }
89
- },
90
- {
91
- loader: 'sass-loader'
92
- }
93
- ]
94
- }
95
- ]
96
- }
97
- };
98
- };
1
+ const path = require('path');
2
+
3
+ const HtmlWebpackPlugin = require('html-webpack-plugin');
4
+ const {CleanWebpackPlugin} = require('clean-webpack-plugin');
5
+ const MiniCssExtractPlugin = require('mini-css-extract-plugin');
6
+ const CopyWebpackPlugin = require('copy-webpack-plugin');
7
+
8
+ module.exports = () => {
9
+ return {
10
+ mode : 'production',
11
+ entry : {
12
+ data : './src/js/data.js',
13
+ main : './src/js/script.js',
14
+ utils : './src/js/utils.js',
15
+ 'geira-icons': './src/scss/geira-icons.scss',
16
+ styles : './src/scss/styles.scss'
17
+ },
18
+ output : {
19
+ filename: '[name].min.js',
20
+ path : path.resolve(__dirname, 'dist')
21
+ },
22
+ devtool : 'source-map',
23
+ resolve : {
24
+ extensions: ['.js']
25
+ },
26
+ devServer: {
27
+ contentBase: './dist'
28
+ },
29
+ plugins : [
30
+ new CleanWebpackPlugin(),
31
+ new HtmlWebpackPlugin({
32
+ filename: 'index.html',
33
+ template: 'src/index.html',
34
+ chunks : ['data', 'main', 'geira-icons', 'styles']
35
+ }),
36
+ new HtmlWebpackPlugin({
37
+ filename: 'usage.html',
38
+ template: 'src/usage.html',
39
+ chunks : ['data', 'utils', 'geira-icons', 'styles']
40
+ }),
41
+ new CopyWebpackPlugin({
42
+ patterns: [
43
+ {
44
+ from: './src/fonts',
45
+ to : './fonts'
46
+ }
47
+ ]
48
+ }),
49
+ new CopyWebpackPlugin({
50
+ patterns: [
51
+ {
52
+ from: './src/scss/geira-icons.scss',
53
+ to : './'
54
+ }
55
+ ]
56
+ }),
57
+ new CopyWebpackPlugin({
58
+ patterns: [
59
+ {
60
+ from: './src/js/icons.json',
61
+ to : './'
62
+ }
63
+ ]
64
+ }),
65
+ new CopyWebpackPlugin({
66
+ patterns: [
67
+ {
68
+ from: './src/images',
69
+ to : './images'
70
+ }
71
+ ]
72
+ }),
73
+ new MiniCssExtractPlugin({
74
+ filename : '[name].min.css',
75
+ chunkFilename: '[id].css'
76
+ })
77
+ ],
78
+ module : {
79
+ rules: [
80
+ {
81
+ test: /\.s[ac]ss$/i,
82
+ use : [
83
+ MiniCssExtractPlugin.loader,
84
+ {
85
+ loader : 'css-loader',
86
+ options: {
87
+ url: false
88
+ }
89
+ },
90
+ {
91
+ loader: 'sass-loader'
92
+ }
93
+ ]
94
+ }
95
+ ]
96
+ }
97
+ };
98
+ };
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="Encoding">
4
- <file url="PROJECT" charset="UTF-8" />
5
- </component>
6
- </project>
@@ -1,12 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="WEB_MODULE" version="4">
3
- <component name="NewModuleRootManager">
4
- <content url="file://$MODULE_DIR$">
5
- <excludeFolder url="file://$MODULE_DIR$/temp" />
6
- <excludeFolder url="file://$MODULE_DIR$/.tmp" />
7
- <excludeFolder url="file://$MODULE_DIR$/tmp" />
8
- </content>
9
- <orderEntry type="inheritedJdk" />
10
- <orderEntry type="sourceFolder" forTests="false" />
11
- </component>
12
- </module>
package/.idea/misc.xml DELETED
@@ -1,71 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="MarkdownProjectSettings">
4
- <PreviewSettings splitEditorLayout="SPLIT" splitEditorPreview="PREVIEW" useGrayscaleRendering="false" zoomFactor="1.25" maxImageWidth="0" showGitHubPageIfSynced="false" allowBrowsingInPreview="false" synchronizePreviewPosition="false" highlightPreviewType="LINE" highlightFadeOut="5" highlightOnTyping="false" synchronizeSourcePosition="false" verticallyAlignSourceAndPreviewSyncPosition="true" showSearchHighlightsInPreview="true" showSelectionInPreview="true">
5
- <PanelProvider>
6
- <provider providerId="com.vladsch.idea.multimarkdown.editor.swing.html.panel" providerName="Default - Swing" />
7
- </PanelProvider>
8
- </PreviewSettings>
9
- <ParserSettings gitHubSyntaxChange="false">
10
- <PegdownExtensions>
11
- <option name="ABBREVIATIONS" value="false" />
12
- <option name="ANCHORLINKS" value="true" />
13
- <option name="ASIDE" value="false" />
14
- <option name="ATXHEADERSPACE" value="true" />
15
- <option name="AUTOLINKS" value="true" />
16
- <option name="DEFINITIONS" value="false" />
17
- <option name="DEFINITION_BREAK_DOUBLE_BLANK_LINE" value="false" />
18
- <option name="FENCED_CODE_BLOCKS" value="true" />
19
- <option name="FOOTNOTES" value="false" />
20
- <option name="HARDWRAPS" value="false" />
21
- <option name="INSERTED" value="false" />
22
- <option name="QUOTES" value="false" />
23
- <option name="RELAXEDHRULES" value="true" />
24
- <option name="SMARTS" value="false" />
25
- <option name="STRIKETHROUGH" value="true" />
26
- <option name="SUBSCRIPT" value="false" />
27
- <option name="SUPERSCRIPT" value="false" />
28
- <option name="SUPPRESS_HTML_BLOCKS" value="false" />
29
- <option name="SUPPRESS_INLINE_HTML" value="false" />
30
- <option name="TABLES" value="true" />
31
- <option name="TASKLISTITEMS" value="true" />
32
- <option name="TOC" value="false" />
33
- <option name="WIKILINKS" value="true" />
34
- </PegdownExtensions>
35
- <ParserOptions>
36
- <option name="COMMONMARK_LISTS" value="false" />
37
- <option name="DUMMY" value="false" />
38
- <option name="EMOJI_SHORTCUTS" value="true" />
39
- <option name="FLEXMARK_FRONT_MATTER" value="false" />
40
- <option name="GFM_LOOSE_BLANK_LINE_AFTER_ITEM_PARA" value="false" />
41
- <option name="GFM_TABLE_RENDERING" value="true" />
42
- <option name="GITBOOK_URL_ENCODING" value="false" />
43
- <option name="GITHUB_EMOJI_URL" value="false" />
44
- <option name="GITHUB_LISTS" value="true" />
45
- <option name="GITHUB_WIKI_LINKS" value="true" />
46
- <option name="JEKYLL_FRONT_MATTER" value="false" />
47
- <option name="SIM_TOC_BLANK_LINE_SPACER" value="true" />
48
- </ParserOptions>
49
- </ParserSettings>
50
- <HtmlSettings headerTopEnabled="false" headerBottomEnabled="false" bodyTopEnabled="false" bodyBottomEnabled="false" embedUrlContent="false" addPageHeader="true">
51
- <GeneratorProvider>
52
- <provider providerId="com.vladsch.idea.multimarkdown.editor.swing.html.generator" providerName="Default Swing HTML Generator" />
53
- </GeneratorProvider>
54
- <headerTop />
55
- <headerBottom />
56
- <bodyTop />
57
- <bodyBottom />
58
- </HtmlSettings>
59
- <CssSettings previewScheme="UI_SCHEME" cssUri="" isCssUriEnabled="false" isCssTextEnabled="false" isDynamicPageWidth="true">
60
- <StylesheetProvider>
61
- <provider providerId="com.vladsch.idea.multimarkdown.editor.swing.html.css" providerName="Default Swing Stylesheet" />
62
- </StylesheetProvider>
63
- <ScriptProviders />
64
- <cssText />
65
- </CssSettings>
66
- <HtmlExportSettings updateOnSave="false" parentDir="$ProjectFileDir$" targetDir="$ProjectFileDir$" cssDir="" scriptDir="" plainHtml="false" imageDir="" copyLinkedImages="false" imageUniquifyType="0" targetExt="" useTargetExt="false" noCssNoScripts="false" linkToExportedHtml="true" exportOnSettingsChange="true" regenerateOnProjectOpen="false" />
67
- <LinkMapSettings>
68
- <textMaps />
69
- </LinkMapSettings>
70
- </component>
71
- </project>
package/.idea/modules.xml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/geira-icons-tool.iml" filepath="$PROJECT_DIR$/.idea/geira-icons-tool.iml" />
6
- </modules>
7
- </component>
8
- </project>
package/.idea/vcs.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
- </component>
6
- </project>