mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-01-25 15:08:11 +00:00
31 lines
753 B
JavaScript
31 lines
753 B
JavaScript
import commonjs from 'rollup-plugin-commonjs';
|
|
import resolve from 'rollup-plugin-node-resolve';
|
|
import replace from 'rollup-plugin-replace';
|
|
import postcss from 'rollup-plugin-postcss';
|
|
import babel from 'rollup-plugin-babel';
|
|
|
|
export default {
|
|
input: 'ShadowEditor.AI/src/index.js',
|
|
output: {
|
|
indent: '\t',
|
|
format: 'umd',
|
|
name: 'AI',
|
|
file: 'ShadowEditor.AI/build/ShadowEditor.AI.js'
|
|
},
|
|
treeshake: true,
|
|
external: [],
|
|
plugins: [
|
|
resolve(),
|
|
commonjs(),
|
|
replace({
|
|
'process.env.NODE_ENV': '"development"' // production
|
|
}),
|
|
postcss({
|
|
extract: true,
|
|
}),
|
|
babel({
|
|
exclude: 'node_modules/**'
|
|
})
|
|
]
|
|
};
|