{"_id":"wrap-loader","_rev":"3670710","name":"wrap-loader","description":"Add custom content before and after the loaded source.","dist-tags":{"latest":"0.2.0"},"maintainers":[{"name":"unindented","email":""}],"time":{"modified":"2025-02-13T05:41:03.000Z","created":"2014-10-19T15:14:31.506Z","0.2.0":"2017-06-19T01:27:12.617Z","0.1.0":"2015-05-17T15:44:20.841Z","0.0.2":"2014-10-30T23:59:32.053Z","0.0.1":"2014-10-19T15:14:31.506Z"},"users":{},"author":{"name":"Daniel Perez Alvarez","email":"unindented@gmail.com","url":"http://unindented.org/"},"repository":{"type":"git","url":"git://github.com/unindented/wrap-loader.git"},"versions":{"0.2.0":{"name":"wrap-loader","description":"Add custom content before and after the loaded source.","version":"0.2.0","author":{"name":"Daniel Perez Alvarez","email":"unindented@gmail.com","url":"http://unindented.org/"},"repository":{"type":"git","url":"git://github.com/unindented/wrap-loader.git"},"keywords":["wrap","webpack"],"scripts":{"test:lint":"eslint .","test:unit":"nodeunit test/loader.js","test":"run-s test:*"},"dependencies":{"loader-utils":"^1.1.0"},"devDependencies":{"eslint":"^3.19.0","eslint-config-standard":"^10.2.1","eslint-plugin-import":"^2.3.0","eslint-plugin-node":"^5.0.0","eslint-plugin-promise":"^3.5.0","eslint-plugin-standard":"^3.0.1","nodeunit":"^0.11.1","npm-run-all":"^4.0.2"},"gitHead":"58c811b111d4a45215a2415c344832f0efa4ddef","bugs":{"url":"https://github.com/unindented/wrap-loader/issues"},"homepage":"https://github.com/unindented/wrap-loader#readme","_id":"wrap-loader@0.2.0","_npmVersion":"5.0.3","_nodeVersion":"8.1.2","_npmUser":{"name":"unindented","email":"unindented@gmail.com"},"dist":{"shasum":"8209f87ec80047a657a2adabbcfd62cfad7f0aae","size":27074,"noattachment":false,"key":"/wrap-loader/-/wrap-loader-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/wrap-loader/download/wrap-loader-0.2.0.tgz"},"maintainers":[{"name":"unindented","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wrap-loader-0.2.0.tgz_1497835631644_0.6647094048094004"},"directories":{},"_cnpmcore_publish_time":"2021-12-20T10:04:23.504Z","publish_time":1497835632617,"_cnpm_publish_time":1497835632617},"0.1.0":{"name":"wrap-loader","description":"Add custom content before and after the loaded source.","version":"0.1.0","author":{"name":"Daniel Perez Alvarez","email":"unindented@gmail.com","url":"http://unindented.org/"},"repository":{"type":"git","url":"git://github.com/unindented/wrap-loader.git"},"keywords":["wrap","webpack"],"scripts":{"test":"nodeunit test/loader.js"},"dependencies":{"loader-utils":"^0.2.5"},"devDependencies":{"nodeunit":"^0.9"},"gitHead":"d015ea9d38579f57639bed174b9cf69c18639af6","bugs":{"url":"https://github.com/unindented/wrap-loader/issues"},"homepage":"https://github.com/unindented/wrap-loader","_id":"wrap-loader@0.1.0","_shasum":"dd6f7fe2440688b263cc27867a261eda76a74396","_from":".","_npmVersion":"2.4.1","_nodeVersion":"0.10.36","_npmUser":{"name":"unindented","email":"unindented@gmail.com"},"maintainers":[{"name":"unindented","email":""}],"dist":{"shasum":"dd6f7fe2440688b263cc27867a261eda76a74396","size":3125,"noattachment":false,"key":"/wrap-loader/-/wrap-loader-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/wrap-loader/download/wrap-loader-0.1.0.tgz"},"directories":{},"_cnpmcore_publish_time":"2021-12-20T10:04:23.397Z","publish_time":1431877460841,"_cnpm_publish_time":1431877460841},"0.0.2":{"name":"wrap-loader","description":"Add custom content before and after the loaded source.","version":"0.0.2","author":{"name":"Daniel Perez Alvarez","email":"unindented@gmail.com","url":"http://unindented.org/"},"repository":{"type":"git","url":"git://github.com/unindented/wrap-loader.git"},"keywords":["wrap","webpack"],"scripts":{"test":"nodeunit test/loader.js"},"dependencies":{"loader-utils":"^0.2.5"},"devDependencies":{"nodeunit":"^0.9"},"gitHead":"66cca5257e9ff64f19dfe0ece1cf802cf67c0169","bugs":{"url":"https://github.com/unindented/wrap-loader/issues"},"homepage":"https://github.com/unindented/wrap-loader","_id":"wrap-loader@0.0.2","_shasum":"1c55931426291360521370be534a2c32fb9d32fe","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"unindented","email":"unindented@gmail.com"},"maintainers":[{"name":"unindented","email":""}],"dist":{"shasum":"1c55931426291360521370be534a2c32fb9d32fe","size":3084,"noattachment":false,"key":"/wrap-loader/-/wrap-loader-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/wrap-loader/download/wrap-loader-0.0.2.tgz"},"directories":{},"_cnpmcore_publish_time":"2021-12-20T10:04:22.205Z","publish_time":1414713572053,"_cnpm_publish_time":1414713572053},"0.0.1":{"name":"wrap-loader","description":"Add custom content before and after the loaded source.","version":"0.0.1","author":{"name":"Daniel Perez Alvarez","email":"unindented@gmail.com","url":"http://unindented.org/"},"repository":{"type":"git","url":"git://github.com/unindented/wrap-loader.git"},"keywords":["wrap","webpack"],"scripts":{"test":"nodeunit test/loader.js"},"dependencies":{"loader-utils":"^0.2.5"},"devDependencies":{"nodeunit":"^0.9"},"gitHead":"9ee5f1ea6d05a2b1ed5097bd21102d1445cddc86","bugs":{"url":"https://github.com/unindented/wrap-loader/issues"},"homepage":"https://github.com/unindented/wrap-loader","_id":"wrap-loader@0.0.1","_shasum":"6959d00b513dbdbde964abad66ae37b5388b1d12","_from":".","_npmVersion":"2.1.3","_nodeVersion":"0.10.32","_npmUser":{"name":"unindented","email":"unindented@gmail.com"},"maintainers":[{"name":"unindented","email":""}],"dist":{"shasum":"6959d00b513dbdbde964abad66ae37b5388b1d12","size":2506,"noattachment":false,"key":"/wrap-loader/-/wrap-loader-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/wrap-loader/download/wrap-loader-0.0.1.tgz"},"directories":{},"_cnpmcore_publish_time":"2021-12-20T10:04:21.324Z","publish_time":1413731671506,"_cnpm_publish_time":1413731671506}},"readme":"# Wrap loader for webpack [![Version](https://img.shields.io/npm/v/wrap-loader.svg)](https://www.npmjs.com/package/wrap-loader) [![Build Status](https://img.shields.io/travis/unindented/wrap-loader.svg)](http://travis-ci.org/unindented/wrap-loader)\n\nAdds custom content before and after the loaded source.\n\n\n## Installation\n\n```sh\n$ npm install --save wrap-loader\n```\n\n\n## Usage\n\n[Documentation: Using loaders](http://webpack.github.io/docs/using-loaders.html)\n\nIn your `webpack.config.js` file:\n\n```js\nmodule.exports = {\n  module: {\n    loaders: [{\n      test:   /\\.less$/,\n      loader: 'style!css!less!wrap?less'\n    }]\n  },\n\n  wrap: {\n    less: {\n      before: [\n        '@import \"~bootstrap/less/variables.less\";',\n        '@import \"~bootstrap/less/mixins.less\";'\n      ],\n      after: '@import \"~utils/debug.less\";'\n    }\n  }\n};\n```\n\n\n## Meta\n\n* Code: `git clone git://github.com/unindented/wrap-loader.git`\n* Home: <https://github.com/unindented/wrap-loader/>\n\n\n## Contributors\n\n* Daniel Perez Alvarez ([unindented@gmail.com](mailto:unindented@gmail.com))\n\n\n## License\n\nCopyright (c) 2014 Daniel Perez Alvarez ([unindented.org](http://unindented.org/)). This is free software, and may be redistributed under the terms specified in the LICENSE file.\n","_attachments":{},"homepage":"https://github.com/unindented/wrap-loader#readme","bugs":{"url":"https://github.com/unindented/wrap-loader/issues"}}