Iniitial css-loader configuration.
This commit is contained in:
		
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @@ -3,3 +3,4 @@ | ||||
| .swo | ||||
| .bak | ||||
| node_modules/ | ||||
| assets/ | ||||
|   | ||||
| @@ -7,6 +7,8 @@ | ||||
|   "author": "Daniel Kraus <bovender@bovender.de>", | ||||
|   "license": "MIT", | ||||
|   "devDependencies": { | ||||
|     "css-loader": "^3.4.0", | ||||
|     "style-loader": "^1.1.1", | ||||
|     "webpack": "4", | ||||
|     "webpack-cli": "^3.3.10" | ||||
|   } | ||||
|   | ||||
							
								
								
									
										1
									
								
								src/component.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								src/component.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| import './component.scss' | ||||
							
								
								
									
										3
									
								
								src/component.scss
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								src/component.scss
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| .dummy { | ||||
|   background-color: transparent; | ||||
| } | ||||
							
								
								
									
										21
									
								
								webpack.config.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								webpack.config.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,21 @@ | ||||
| const path = require('path'); | ||||
|  | ||||
| module.exports = { | ||||
|   entry: './src/component.js', | ||||
|   output: { | ||||
|     filename: 'component.js', | ||||
|     path: path.resolve(__dirname, 'assets'), | ||||
|   }, | ||||
|   mode: 'production', | ||||
|   module: { | ||||
|     rules: [ | ||||
|       { | ||||
|         test: /\.[s]css$/, | ||||
|         use: [ | ||||
|           'style-loader', | ||||
|           'css-loader', | ||||
|         ], | ||||
|       }, | ||||
|     ], | ||||
|   }, | ||||
| }; | ||||
							
								
								
									
										118
									
								
								yarn.lock
									
									
									
									
									
								
							
							
						
						
									
										118
									
								
								yarn.lock
									
									
									
									
									
								
							| @@ -458,12 +458,12 @@ cache-base@^1.0.1: | ||||
|     union-value "^1.0.0" | ||||
|     unset-value "^1.0.0" | ||||
|  | ||||
| camelcase@^5.0.0: | ||||
| camelcase@^5.0.0, camelcase@^5.3.1: | ||||
|   version "5.3.1" | ||||
|   resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" | ||||
|   integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== | ||||
|  | ||||
| chalk@2.4.2: | ||||
| chalk@2.4.2, chalk@^2.4.2: | ||||
|   version "2.4.2" | ||||
|   resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" | ||||
|   integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== | ||||
| @@ -671,6 +671,29 @@ crypto-browserify@^3.11.0: | ||||
|     randombytes "^2.0.0" | ||||
|     randomfill "^1.0.3" | ||||
|  | ||||
| css-loader@^3.4.0: | ||||
|   version "3.4.0" | ||||
|   resolved "https://registry.yarnpkg.com/css-loader/-/css-loader-3.4.0.tgz#9fb263436783117a41d014e45e8eaeba54dd6670" | ||||
|   integrity sha512-JornYo4RAXl1Mzt0lOSVPmArzAMV3rGY2VuwtaDc732WTWjdwTaeS19nCGWMcSCf305Q396lhhDAJEWWM0SgPQ== | ||||
|   dependencies: | ||||
|     camelcase "^5.3.1" | ||||
|     cssesc "^3.0.0" | ||||
|     icss-utils "^4.1.1" | ||||
|     loader-utils "^1.2.3" | ||||
|     normalize-path "^3.0.0" | ||||
|     postcss "^7.0.23" | ||||
|     postcss-modules-extract-imports "^2.0.0" | ||||
|     postcss-modules-local-by-default "^3.0.2" | ||||
|     postcss-modules-scope "^2.1.1" | ||||
|     postcss-modules-values "^3.0.0" | ||||
|     postcss-value-parser "^4.0.2" | ||||
|     schema-utils "^2.6.0" | ||||
|  | ||||
| cssesc@^3.0.0: | ||||
|   version "3.0.0" | ||||
|   resolved "https://registry.yarnpkg.com/cssesc/-/cssesc-3.0.0.tgz#37741919903b868565e1c09ea747445cd18983ee" | ||||
|   integrity sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg== | ||||
|  | ||||
| cyclist@^1.0.1: | ||||
|   version "1.0.1" | ||||
|   resolved "https://registry.yarnpkg.com/cyclist/-/cyclist-1.0.1.tgz#596e9698fd0c80e12038c2b82d6eb1b35b6224d9" | ||||
| @@ -1165,6 +1188,13 @@ https-browserify@^1.0.0: | ||||
|   resolved "https://registry.yarnpkg.com/https-browserify/-/https-browserify-1.0.0.tgz#ec06c10e0a34c0f2faf199f7fd7fc78fffd03c73" | ||||
|   integrity sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM= | ||||
|  | ||||
| icss-utils@^4.0.0, icss-utils@^4.1.1: | ||||
|   version "4.1.1" | ||||
|   resolved "https://registry.yarnpkg.com/icss-utils/-/icss-utils-4.1.1.tgz#21170b53789ee27447c2f47dd683081403f9a467" | ||||
|   integrity sha512-4aFq7wvWyMHKgxsH8QQtGpvbASCf+eM3wPRLI6R+MgAnTCZ6STYsRvttLvRWK0Nfif5piF394St3HeJDaljGPA== | ||||
|   dependencies: | ||||
|     postcss "^7.0.14" | ||||
|  | ||||
| ieee754@^1.1.4: | ||||
|   version "1.1.13" | ||||
|   resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.1.13.tgz#ec168558e95aa181fd87d37f55c32bbcb6708b84" | ||||
| @@ -1188,6 +1218,11 @@ imurmurhash@^0.1.4: | ||||
|   resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" | ||||
|   integrity sha1-khi5srkoojixPcT7a21XbyMUU+o= | ||||
|  | ||||
| indexes-of@^1.0.1: | ||||
|   version "1.0.1" | ||||
|   resolved "https://registry.yarnpkg.com/indexes-of/-/indexes-of-1.0.1.tgz#f30f716c8e2bd346c7b67d3df3915566a7c05607" | ||||
|   integrity sha1-8w9xbI4r00bHtn0985FVZqfAVgc= | ||||
|  | ||||
| infer-owner@^1.0.3: | ||||
|   version "1.0.4" | ||||
|   resolved "https://registry.yarnpkg.com/infer-owner/-/infer-owner-1.0.4.tgz#c4cefcaa8e51051c2a40ba2ce8a3d27295af9467" | ||||
| @@ -1878,6 +1913,62 @@ posix-character-classes@^0.1.0: | ||||
|   resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab" | ||||
|   integrity sha1-AerA/jta9xoqbAL+q7jB/vfgDqs= | ||||
|  | ||||
| postcss-modules-extract-imports@^2.0.0: | ||||
|   version "2.0.0" | ||||
|   resolved "https://registry.yarnpkg.com/postcss-modules-extract-imports/-/postcss-modules-extract-imports-2.0.0.tgz#818719a1ae1da325f9832446b01136eeb493cd7e" | ||||
|   integrity sha512-LaYLDNS4SG8Q5WAWqIJgdHPJrDDr/Lv775rMBFUbgjTz6j34lUznACHcdRWroPvXANP2Vj7yNK57vp9eFqzLWQ== | ||||
|   dependencies: | ||||
|     postcss "^7.0.5" | ||||
|  | ||||
| postcss-modules-local-by-default@^3.0.2: | ||||
|   version "3.0.2" | ||||
|   resolved "https://registry.yarnpkg.com/postcss-modules-local-by-default/-/postcss-modules-local-by-default-3.0.2.tgz#e8a6561be914aaf3c052876377524ca90dbb7915" | ||||
|   integrity sha512-jM/V8eqM4oJ/22j0gx4jrp63GSvDH6v86OqyTHHUvk4/k1vceipZsaymiZ5PvocqZOl5SFHiFJqjs3la0wnfIQ== | ||||
|   dependencies: | ||||
|     icss-utils "^4.1.1" | ||||
|     postcss "^7.0.16" | ||||
|     postcss-selector-parser "^6.0.2" | ||||
|     postcss-value-parser "^4.0.0" | ||||
|  | ||||
| postcss-modules-scope@^2.1.1: | ||||
|   version "2.1.1" | ||||
|   resolved "https://registry.yarnpkg.com/postcss-modules-scope/-/postcss-modules-scope-2.1.1.tgz#33d4fc946602eb5e9355c4165d68a10727689dba" | ||||
|   integrity sha512-OXRUPecnHCg8b9xWvldG/jUpRIGPNRka0r4D4j0ESUU2/5IOnpsjfPPmDprM3Ih8CgZ8FXjWqaniK5v4rWt3oQ== | ||||
|   dependencies: | ||||
|     postcss "^7.0.6" | ||||
|     postcss-selector-parser "^6.0.0" | ||||
|  | ||||
| postcss-modules-values@^3.0.0: | ||||
|   version "3.0.0" | ||||
|   resolved "https://registry.yarnpkg.com/postcss-modules-values/-/postcss-modules-values-3.0.0.tgz#5b5000d6ebae29b4255301b4a3a54574423e7f10" | ||||
|   integrity sha512-1//E5jCBrZ9DmRX+zCtmQtRSV6PV42Ix7Bzj9GbwJceduuf7IqP8MgeTXuRDHOWj2m0VzZD5+roFWDuU8RQjcg== | ||||
|   dependencies: | ||||
|     icss-utils "^4.0.0" | ||||
|     postcss "^7.0.6" | ||||
|  | ||||
| postcss-selector-parser@^6.0.0, postcss-selector-parser@^6.0.2: | ||||
|   version "6.0.2" | ||||
|   resolved "https://registry.yarnpkg.com/postcss-selector-parser/-/postcss-selector-parser-6.0.2.tgz#934cf799d016c83411859e09dcecade01286ec5c" | ||||
|   integrity sha512-36P2QR59jDTOAiIkqEprfJDsoNrvwFei3eCqKd1Y0tUsBimsq39BLp7RD+JWny3WgB1zGhJX8XVePwm9k4wdBg== | ||||
|   dependencies: | ||||
|     cssesc "^3.0.0" | ||||
|     indexes-of "^1.0.1" | ||||
|     uniq "^1.0.1" | ||||
|  | ||||
| postcss-value-parser@^4.0.0, postcss-value-parser@^4.0.2: | ||||
|   version "4.0.2" | ||||
|   resolved "https://registry.yarnpkg.com/postcss-value-parser/-/postcss-value-parser-4.0.2.tgz#482282c09a42706d1fc9a069b73f44ec08391dc9" | ||||
|   integrity sha512-LmeoohTpp/K4UiyQCwuGWlONxXamGzCMtFxLq4W1nZVGIQLYvMCJx3yAF9qyyuFpflABI9yVdtJAqbihOsCsJQ== | ||||
|  | ||||
| postcss@^7.0.14, postcss@^7.0.16, postcss@^7.0.23, postcss@^7.0.5, postcss@^7.0.6: | ||||
|   version "7.0.25" | ||||
|   resolved "https://registry.yarnpkg.com/postcss/-/postcss-7.0.25.tgz#dd2a2a753d50b13bed7a2009b4a18ac14d9db21e" | ||||
|   integrity sha512-NXXVvWq9icrm/TgQC0O6YVFi4StfJz46M1iNd/h6B26Nvh/HKI+q4YZtFN/EjcInZliEscO/WL10BXnc1E5nwg== | ||||
|   dependencies: | ||||
|     chalk "^2.4.2" | ||||
|     source-map "^0.6.1" | ||||
|     supports-color "^6.1.0" | ||||
|  | ||||
| process-nextick-args@~2.0.0: | ||||
|   version "2.0.1" | ||||
|   resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2" | ||||
| @@ -2108,6 +2199,14 @@ schema-utils@^1.0.0: | ||||
|     ajv-errors "^1.0.0" | ||||
|     ajv-keywords "^3.1.0" | ||||
|  | ||||
| schema-utils@^2.0.1, schema-utils@^2.6.0: | ||||
|   version "2.6.1" | ||||
|   resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-2.6.1.tgz#eb78f0b945c7bcfa2082b3565e8db3548011dc4f" | ||||
|   integrity sha512-0WXHDs1VDJyo+Zqs9TKLKyD/h7yDpHUhEFsM2CzkICFdoX1av+GBq/J2xRTFfsQO5kBfhZzANf2VcIm84jqDbg== | ||||
|   dependencies: | ||||
|     ajv "^6.10.2" | ||||
|     ajv-keywords "^3.4.1" | ||||
|  | ||||
| semver@^5.5.0, semver@^5.6.0: | ||||
|   version "5.7.1" | ||||
|   resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" | ||||
| @@ -2321,7 +2420,15 @@ strip-eof@^1.0.0: | ||||
|   resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf" | ||||
|   integrity sha1-u0P/VZim6wXYm1n80SnJgzE2Br8= | ||||
|  | ||||
| supports-color@6.1.0: | ||||
| style-loader@^1.1.1: | ||||
|   version "1.1.1" | ||||
|   resolved "https://registry.yarnpkg.com/style-loader/-/style-loader-1.1.1.tgz#8290d915dffe820916790cdcab5aa58c38ab605c" | ||||
|   integrity sha512-oIVF12trRq0od4Yojg7q0K3Lq/O6Ix/AYgVosykrVg+kWxxxUyk8KhKCCmekyGSUiVK1xxlAQymLWWdh6S9lOg== | ||||
|   dependencies: | ||||
|     loader-utils "^1.2.3" | ||||
|     schema-utils "^2.0.1" | ||||
|  | ||||
| supports-color@6.1.0, supports-color@^6.1.0: | ||||
|   version "6.1.0" | ||||
|   resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-6.1.0.tgz#0764abc69c63d5ac842dd4867e8d025e880df8f3" | ||||
|   integrity sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ== | ||||
| @@ -2434,6 +2541,11 @@ union-value@^1.0.0: | ||||
|     is-extendable "^0.1.1" | ||||
|     set-value "^2.0.1" | ||||
|  | ||||
| uniq@^1.0.1: | ||||
|   version "1.0.1" | ||||
|   resolved "https://registry.yarnpkg.com/uniq/-/uniq-1.0.1.tgz#b31c5ae8254844a3a8281541ce2b04b865a734ff" | ||||
|   integrity sha1-sxxa6CVIRKOoKBVBzisEuGWnNP8= | ||||
|  | ||||
| unique-filename@^1.1.1: | ||||
|   version "1.1.1" | ||||
|   resolved "https://registry.yarnpkg.com/unique-filename/-/unique-filename-1.1.1.tgz#1d69769369ada0583103a1e6ae87681b56573230" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user