Skip to content

Commit

Permalink
Add prebuild elements
Browse files Browse the repository at this point in the history
  • Loading branch information
kenchris committed Oct 14, 2019
1 parent 7bd13b0 commit dc98262
Show file tree
Hide file tree
Showing 5 changed files with 281 additions and 1 deletion.
268 changes: 268 additions & 0 deletions build/elements/camera-capture.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/elements/camera-capture.js.map

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions build/elements/demo-logger.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/elements/demo-logger.js.map

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const resolve = require('rollup-plugin-node-resolve');
const babel = require('rollup-plugin-babel');
const { terser } = require('rollup-plugin-terser');
const { DEFAULT_EXTENSIONS } = require('@babel/core');
const { findSupportedBrowsers } = require('@open-wc/building-utils');
const customMinifyCss = require('@open-wc/building-utils/custom-minify-css');
Expand Down Expand Up @@ -48,7 +49,10 @@ const plugins = [
},
],
],
})
}),

// only minify if in production
production && terser()
];

const outputOptions = [
Expand Down

0 comments on commit dc98262

Please sign in to comment.