{"_id":"@elricb/sass-themer-import-loader","_rev":"4-66769d82b6329cf7a089259accff6e15","name":"@elricb/sass-themer-import-loader","description":"Creates a list of scss @import statements prior to sass parsing.  Intended to be run prior to the  [sass-loader](https://github.com/webpack-contrib/sass-loader).","dist-tags":{"latest":"2.0.2"},"versions":{"2.0.0":{"name":"@elricb/sass-themer-import-loader","version":"2.0.0","description":"Creates a list of scss @import statements prior to sass parsing.  Intended to be run prior to the  [sass-loader](https://github.com/webpack-contrib/sass-loader).","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/elricdesigns/sass-themer-import-loader.git"},"author":{"name":"elricb"},"license":"MIT","bugs":{"url":"https://github.com/elricdesigns/sass-themer-import-loader/issues"},"homepage":"https://github.com/elricdesigns/sass-themer-import-loader#readme","gitHead":"44edc39993e5580abbdc765796973428b01d4233","_id":"@elricb/sass-themer-import-loader@2.0.0","_shasum":"d96afbb824b2490b06a74a1383de8574d38e9470","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.3","_npmUser":{"name":"elricb","email":"elricdesigns@gmail.com"},"dist":{"shasum":"d96afbb824b2490b06a74a1383de8574d38e9470","tarball":"https://registry.npmjs.org/@elricb/sass-themer-import-loader/-/sass-themer-import-loader-2.0.0.tgz","integrity":"sha512-cqsmjJKty9iZgb1I0BKGKg2tM59tjtkDTw4JUeSlcSUagTtxpA6MvIm4feotrPYoablXzjnZh+/AtCgihnY6Iw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCILtBQgrL/bIKDMZZ5/Jj5N9tBf2rI6JqxfKjPEr/t2gIhAJzrTt734wQDwPLlMHaFd9cGUxxuZqq7jvNlcEASkhUl"}]},"maintainers":[{"name":"elricb","email":"elricdesigns@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sass-themer-import-loader-2.0.0.tgz_1502476488308_0.7633698761928827"}},"2.0.1":{"name":"@elricb/sass-themer-import-loader","version":"2.0.1","description":"Creates a list of scss @import statements prior to sass parsing.  Intended to be run prior to the  [sass-loader](https://github.com/webpack-contrib/sass-loader).","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/elricdesigns/sass-themer-import-loader.git"},"author":{"name":"elricb"},"license":"MIT","bugs":{"url":"https://github.com/elricdesigns/sass-themer-import-loader/issues"},"homepage":"https://github.com/elricdesigns/sass-themer-import-loader#readme","gitHead":"44edc39993e5580abbdc765796973428b01d4233","_id":"@elricb/sass-themer-import-loader@2.0.1","_shasum":"2b1efdc5752d2283c56f56befc79425d884474d2","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.3","_npmUser":{"name":"elricb","email":"elricdesigns@gmail.com"},"dist":{"shasum":"2b1efdc5752d2283c56f56befc79425d884474d2","tarball":"https://registry.npmjs.org/@elricb/sass-themer-import-loader/-/sass-themer-import-loader-2.0.1.tgz","integrity":"sha512-yJPr2nhlIQaMeC9VsIVZh8lEuYupd43CqmzBcD8UOkI+SZF1Yb4QA8zVLj5U8201xY7t+Coqr2ah8aG2dnvVvA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF9vnNIhlvL1e3JNaT3M05AYqMMvJrIQHCozlPO5RoMEAiEA2D0MdtzxJt9WHYj7F280AY1lO8vh8iiO3jVpgz1ONaU="}]},"maintainers":[{"name":"elricb","email":"elricdesigns@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sass-themer-import-loader-2.0.1.tgz_1502476659900_0.6837991264183074"}},"2.0.2":{"name":"@elricb/sass-themer-import-loader","version":"2.0.2","description":"Creates a list of scss @import statements prior to sass parsing.  Intended to be run prior to the  [sass-loader](https://github.com/webpack-contrib/sass-loader).","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/elricdesigns/sass-themer-import-loader.git"},"author":{"name":"elricb"},"license":"MIT","bugs":{"url":"https://github.com/elricdesigns/sass-themer-import-loader/issues"},"homepage":"https://github.com/elricdesigns/sass-themer-import-loader#readme","dependencies":{"loader-utils":"^1.1.0"},"gitHead":"d87437912bde83739a6231df3c743ad1fd34a17f","_id":"@elricb/sass-themer-import-loader@2.0.2","_shasum":"0d458973a99071730da40a9b12ec2806d020713f","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.3","_npmUser":{"name":"elricb","email":"elricdesigns@gmail.com"},"dist":{"shasum":"0d458973a99071730da40a9b12ec2806d020713f","tarball":"https://registry.npmjs.org/@elricb/sass-themer-import-loader/-/sass-themer-import-loader-2.0.2.tgz","integrity":"sha512-FVDk2ZxwHNE7qJANsvSmAHXbhAmwBtz9X5tc+U/ZgDV4tGva72nEwt7yWVXBb/0nvYBKcvo+21QCoOXcprs+vA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDmyxvzAxQd5KXJRnqF17sSttuU9jXvNzc9ZT5E/ADjDAIgQEulTVXiXtPfM/QVOBYPxbSlaEYmSbQZG755//1uNJ0="}]},"maintainers":[{"name":"elricb","email":"elricdesigns@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sass-themer-import-loader-2.0.2.tgz_1502477947961_0.8483963215257972"}}},"readme":"# sass-themer-import-loader\n\nCreates a list of scss @import statements prior to sass parsing.  Intended to be run prior to the  [sass-loader](https://github.com/webpack-contrib/sass-loader).\n\nAllows you to pass in environment variables and use different loaders for the first scss file; e.g. can be used by dynamic css loaders.\n\n## Options & Defaults\n\n### Replace (optional)\n\n[object] Replace can take variables (like webpack parameters) and integrate them into the import statements.\n\nThe below example replaces instances of \"#{VAR1}\" with the defined HOST and \"#{VAR2}\" with \"test\".\n\n```javascript\n    loader: 'sass-themer-import-loader',\n    options: {\n        replace: {\n            '#{VAR1}': process.env.HOST,\n            '#{VAR2}': 'test',\n            'abc':     '123'\n        }\n    }\n```\n\n## Sample Of use\n\n### webpack.config.js\n\nInside your webpack config (webpack.config.js). Add the loader and set your options.\n\n```javascript\nexport.default = {\n    //...\n    module: {\n        //...\n        {\n            test: /scss\\.json$/,\n            exclude: /node_modules/,\n            use: [\n                {\n                    loader: 'style-loader',\n                    options: {}\n                },\n                {\n                    loader: 'css-loader',\n                    options: {}\n                },\n                {\n                    loader: 'postcss-loader',\n                    options: {}\n                },\n                {\n                    loader: 'sass-loader',\n                    options: {}\n                },\n                {\n                    loader: 'sass-themer-import-loader',\n                    options: {\n                        replace: {\n                            '${ENV}' : process.env.npm_lifecycle_event,\n                            '${TEST}' : 'abc123'\n                        }\n                    }\n                }\n            ]\n        }\n    }\n};\n```\n\n### myfile.scss.json\n\nThis file is in json array format.  Inside your .scss.json file (or whatever you want to name it), set the path to your sass file (without the .scss).\n```json\n[\n    \"~public/scss/themes/default/${TEST}/index\",\n    \"~public/scss/themes/greyform/index\",\n    \"~public/scss/themes/mysite/index\"\n]\n```\n\n### output\n\nHere's an example of what the sass parser will receive.  All global variables and mix-ins will be shared/passed down.  All paths are mandatory, so just insert a blank index.scss if the path isn't used.\n\n```scss\n@import '~public/scss/themes/default/abc123/index';\n@import '~public/scss/themes/greyform/index';\n@import '~public/scss/themes/mysite/index';\n```\n","maintainers":[{"name":"elricb","email":"elricdesigns@gmail.com"}],"time":{"modified":"2022-06-12T17:31:50.458Z","created":"2017-08-11T18:34:49.221Z","2.0.0":"2017-08-11T18:34:49.221Z","2.0.1":"2017-08-11T18:37:40.792Z","2.0.2":"2017-08-11T18:59:08.789Z"},"homepage":"https://github.com/elricdesigns/sass-themer-import-loader#readme","repository":{"type":"git","url":"git+https://github.com/elricdesigns/sass-themer-import-loader.git"},"author":{"name":"elricb"},"bugs":{"url":"https://github.com/elricdesigns/sass-themer-import-loader/issues"},"license":"MIT","readmeFilename":"README.md"}