This commit is contained in:
Shan Carter
2017-03-10 11:10:04 -08:00
parent 8807bb1778
commit feea10ed4e
26 changed files with 6340 additions and 252 deletions
+35 -37
View File
@@ -1,39 +1,37 @@
// import buble from 'rollup-plugin-buble';
// import resolve from 'rollup-plugin-node-resolve';
// import commonjs from 'rollup-plugin-commonjs';
// import liveReload from 'rollup-plugin-livereload';
// import serve from 'rollup-plugin-serve';
// import uglify from 'rollup-plugin-uglify';
// import string from 'rollup-plugin-string';
import buble from 'rollup-plugin-buble';
import resolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';
import serve from 'rollup-plugin-serve';
import uglify from 'rollup-plugin-uglify';
import string from 'rollup-plugin-string';
// const PORT = 8080;
// // console.log(`open http://localhost:${PORT}/`);
const PORT = 8080;
console.log(`open http://localhost:${PORT}/`);
// export default {
// entry: 'index.js',
// sourceMap: true,
// targets: [
// {
// format: 'umd',
// moduleName: 'dl',
// dest: `dist/template.js`,
// }
// ],
// plugins: [
// resolve({
// jsnext: true,
// browser: true,
// }),
// string({
// include: ["**/*.txt", "**/*.svg", "**/*.html", "**/*.css", "**/*.base64"]
// }),
// buble({
// exclude: 'node_modules',
// target: { chrome: 52, safari: 9, edge: 13, firefox: 48, }
// }),
// commonjs(),
// // uglify(),
// // liveReload(),
// // serve({port: PORT}),
// ]
// };
export default {
entry: 'components.js',
sourceMap: true,
targets: [
{
format: 'umd',
moduleName: 'dl',
dest: `dist/components.js`,
}
],
plugins: [
resolve({
jsnext: true,
browser: true,
}),
string({
include: ["**/*.txt", "**/*.svg", "**/*.html", "**/*.css", "**/*.base64"]
}),
buble({
exclude: 'node_modules',
target: { chrome: 52, safari: 9, edge: 13, firefox: 48, }
}),
commonjs(),
// uglify(),
serve({port: PORT})
]
};