3.0.0 • Published 6 years ago

rollup-plugin-make v3.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

rollup-plugin-make

Rollup plugin to build dependency files suitable for make

Options

Example

Suppose a make rule builds dist/script/* from script/*. With an input of script/app.js, the plugin will write dependencies to dist/script/app.d by default. In the example below, dependencies will instead be written to dist/.dep/script/app.d:

import make from 'rollup-plugin-make';
import path from 'path';

export default {
  ...
  plugins: [
    ...
    make({
      mangle: (file) => {
        const outputStem = 'dist/';
        const input = file.replace(outputStem, '');
        const inputDep = `${input.substring(0, input.lastIndexOf('.'))}.d`;
        return path.join(outputStem, '.dep', inputDep);
      },
    }),
  ],
};
3.0.0

6 years ago

2.0.0

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago