Merge pull request #1 from freesewing-patterns/js
🚧 Moved from webpack to rollup
This commit is contained in:
parent
7f1bca7ed5
commit
bb7d34cd70
13 changed files with 2999 additions and 4416 deletions
31
packages/brian/rollup.browser.js
Normal file
31
packages/brian/rollup.browser.js
Normal file
|
@ -0,0 +1,31 @@
|
|||
import { terser } from "rollup-plugin-terser";
|
||||
import babel from 'rollup-plugin-babel';
|
||||
import resolve from 'rollup-plugin-node-resolve';
|
||||
import commonjs from "rollup-plugin-commonjs";
|
||||
import json from "rollup-plugin-json";
|
||||
import path from 'path';
|
||||
|
||||
export default {
|
||||
input: 'src/index.js',
|
||||
output: {
|
||||
file: 'dist/brian.min.js',
|
||||
format: 'iife',
|
||||
name: 'freesewing.patterns.brian',
|
||||
banner: `/**\n * Freesewing\n * (c) ${new Date().getFullYear()} Joost De Cock\n * @license MIT\n */`,
|
||||
globals: {
|
||||
freesewing: 'freesewing'
|
||||
}
|
||||
},
|
||||
plugins: [
|
||||
resolve({
|
||||
browser: true
|
||||
}),
|
||||
json(),
|
||||
babel({
|
||||
exclude: 'node_modules/**'
|
||||
}),
|
||||
],
|
||||
external: [
|
||||
'freesewing', path.resolve('./node_modules/freesewing/dist/freesewing.min.js')
|
||||
]
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue