project config

This commit is contained in:
pengfei.zhou
2019-07-17 15:03:31 +08:00
parent 25938fb3cd
commit 9cd607e822
13 changed files with 188 additions and 103 deletions

View File

@@ -0,0 +1,32 @@
const path = require('path')
const fs = require('fs')
import resolve from 'rollup-plugin-node-resolve'
import commonjs from 'rollup-plugin-commonjs'
export default [
{
input: "build/index.runtime.js",
output: {
name: "hego",
format: "iife",
file: "bundle/sandbox.js",
},
sourceMap: true,
plugins: [
resolve({ jsnext: true, main: true }),
// commonjs()
]
},
{
input: "build/index.js",
output: {
format: "cjs",
file: "bundle/bundle.js",
},
sourceMap: true,
plugins: [
resolve({ jsnext: true, main: true }),
commonjs()
]
},
]