代码拉取完成,页面将自动刷新
同步操作将从 FormCreate/form-create-designer 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
/*
* @Author : djkloop
* @Date : 2021-04-04 23:18:00
* @LastEditors : djkloop
* @LastEditTime : 2021-04-05 12:44:31
* @Description : 头部注释
* @FilePath : /rollup.config.js
*/
const {join} = require('path');
import colors from 'chalk';
import {babel} from '@rollup/plugin-babel';
import commonjs from '@rollup/plugin-commonjs';
import replace from '@rollup/plugin-replace';
import vuePlugin from 'rollup-plugin-vue';
import postcss from 'rollup-plugin-postcss';
import {nodeResolve} from '@rollup/plugin-node-resolve';
import {visualizer} from 'rollup-plugin-visualizer';
import externals from 'rollup-plugin-node-externals';
import buble from '@rollup/plugin-buble';
import formCreateNodeResolve from './build/plugins/form-create-rollup-reslove-plugins/node-resolve';
import {not_externals, isExternal} from './build/utils/isExternal';
import {cssUrl} from '@sixian/css-url';
const OutputOptions = require('./build/output');
const cwd = __dirname;
const globals = {
vue: 'Vue',
ELEMENT: 'element-ui'
};
module.exports = {
input: join(cwd, '/src/index.js'),
onwarn: (warning) => {
if (typeof warning === 'string') {
return colors.yellow('warning');
}
const code = (warning.code || '').toLowerCase();
if (code === 'mixed_exports' || code === 'missing_global_name') {
return;
}
let message = warning.message;
console.log(`${colors.yellow(`${code}`)}${colors.dim(':')} ${message}`);
},
output: OutputOptions(),
external:Object.keys(globals || {}).filter(
v => !/^[\.\/]/.test(v)
),
plugins: [
vuePlugin({
css: false
}),
postcss({
minimize: true,
extract: false,
plugins: [
cssUrl({
imgExtensions : /\.(png|jpg|jpeg|gif|svg)$/,
fontExtensions : /\.(ttf|woff|woff2|eot)$/,
limit : 8192,
hash : false,
slash : false
}),
]
}),
externals({
devDeps: false
}),
formCreateNodeResolve(),
nodeResolve({
extensions: ['.js', '.json', '.jsx', '.ts', '.tsx'],
preferBuiltins: true,
jsnext: true,
module: true
}),
commonjs({
ignore: (name) => {
return isExternal(not_externals, name);
}
}),
babel({
babelHelpers: 'bundled',
exclude: 'node_modules/**',
extensions: ['.js', '.jsx', '.mjs', '.ts', '.tsx', '.vue'],
}),
replace({
preventAssignment: true,
'process.env.NODE_ENV': JSON.stringify('production'),
}),
buble(),
visualizer()
]
};
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。