mirror of
https://github.com/wassname/template.git
synced 2026-08-11 11:27:20 +08:00
v2 start
This commit is contained in:
+35
-37
@@ -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})
|
||||
]
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user