{"_id":"@charharhar/laravel-elixir-rollup-official","_rev":"2-f930265a54702c20942bb8ba6094b5ad","name":"@charharhar/laravel-elixir-rollup-official","description":"Laravel Elixir Rollup integration.","dist-tags":{"latest":"1.1.0"},"versions":{"1.1.0":{"name":"@charharhar/laravel-elixir-rollup-official","version":"1.1.0","description":"Laravel Elixir Rollup integration.","main":"dist/index.js","scripts":{"compile":"babel --presets=es2015 -d dist src","prepublish":"npm run compile"},"keywords":["laravel","elixir","rollup"],"author":{"name":"Jeffrey Way"},"license":"MIT","dependencies":{"buble":"^0.14.0","rollup-plugin-buble":"^0.14.0","rollup-plugin-commonjs":"^5.0.4","rollup-plugin-inject":"^2.0.0","rollup-plugin-multi-entry":"^2.0.1","rollup-plugin-node-resolve":"^2.0.0","rollup-plugin-replace":"^1.1.1","rollup-plugin-vue":"^2.2.3","rollup-stream":"^1.19.0","vinyl-buffer":"^1.0.0","vinyl-source-stream":"^1.1.0"},"devDependencies":{"babel-cli":"^6.10.1","babel-preset-es2015":"^6.9.0"},"gitHead":"4d04f14441cfc855f9a348485afebcd222df7e5a","_id":"@charharhar/laravel-elixir-rollup-official@1.1.0","_shasum":"38d3411a1d45180c32fbf1d526bb0580e74dff95","_from":".","_npmVersion":"3.10.10","_nodeVersion":"7.3.0","_npmUser":{"name":"charharhar","email":"charleslee90@gmail.com"},"dist":{"shasum":"38d3411a1d45180c32fbf1d526bb0580e74dff95","tarball":"https://registry.npmjs.org/@charharhar/laravel-elixir-rollup-official/-/laravel-elixir-rollup-official-1.1.0.tgz","integrity":"sha512-6EswlN3eqGXp56Exe0Cs2XXkTXXbLtzNPrE5FleWGij3o25R25XcUytbZjuus4lM1n+kE5GQfMK02ej7SOGlKQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDA5j8sAoX/K5zC+EyYgNra28ppU+tfMFFTfLJf4LoWGgIgGxqinmtjG0DFaejoiDIXTtTJZ7WW+0TavMS80XrKx/k="}]},"maintainers":[{"name":"charharhar","email":"charleslee90@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/laravel-elixir-rollup-official-1.1.0.tgz_1495444201002_0.6763904765248299"}}},"readme":"# Laravel Elixir Rollup Integration\n\nThis extension brings [Rollup.js](http://rollupjs.org/) support to your Laravel Elixir builds. \n\n## Install\n\nFirst, ensure that you're using Laravel Elixir v6 or newer. Next, install the extension like so:\n\n```bash\nnpm install laravel-elixir-rollup-official --save-dev\n```\n\n## Use\n\nYou're all set! Open your `gulpfile.js`, and add:\n\n```js\nelixir(function(mix) {\n  mix.rollup('main.js');\n});\n```\n\nThis will, by default, compile `resources/assets/js/main.js` to `public/js/main.js`. Should you require a non-standard base directory for your \nsource files, begin the path with `./`. This instructs Laravel Elixir to omit any default base directories.\n\n```js\nelixir(function(mix) {\n  mix.rollup('./app/assets/js/main.js');\n});\n```\n\nSimilarly, if you require a different output directory, provide a file or directory path as the second argument to `mix.rollup`.\n\n```js\nelixir(function(mix) {\n  mix.rollup('main.js', 'public/build/bundle.js');\n});\n```\n\nNow, you're specifying that you want to compile `resources/assets/js/main.js` to `public/build/bundle.js`.\n\nIf providing an array of source files, it might be useful to override the default base directory. If desired, specify a path as the third argument.\n\n\n```js\nelixir(function(mix) {\n  mix.rollup(['main.js', 'other.js'], null, 'app/js');\n});\n```\n\nWith this adjustment, we'll compile `app/js/main.js` and `app/js/other.js`.\n\nLastly, should you need to override the default Rollup configuration, you may do so by either creating a `rollup.config.js` file in your project root, \nor by passing a Rollup config object as the fourth argument to `mix.rollup`. You can [learn more about Rollup config files here.](http://rollupjs.org/guide/#using-config-files)\n\n\n","maintainers":[{"name":"charharhar","email":"charleslee90@gmail.com"}],"time":{"modified":"2022-06-12T15:48:33.502Z","created":"2017-05-22T09:10:01.080Z","1.1.0":"2017-05-22T09:10:01.080Z"},"keywords":["laravel","elixir","rollup"],"author":{"name":"Jeffrey Way"},"license":"MIT","readmeFilename":"readme.md"}