mirror of https://github.com/alibaba/ice.git
24 lines
640 B
TypeScript
24 lines
640 B
TypeScript
import { defineConfig } from '@ice/app';
|
|
import SpeedMeasurePlugin from 'speed-measure-webpack-plugin';
|
|
import pluginAuth from '@ice/plugin-auth';
|
|
import pluginRaxCompat from '@ice/plugin-rax-compat';
|
|
|
|
export default defineConfig({
|
|
publicPath: '/',
|
|
define: {
|
|
HAHA: JSON.stringify(true),
|
|
'process.env.HAHA': JSON.stringify(true),
|
|
},
|
|
webpack: (webpackConfig) => {
|
|
if (process.env.NODE_ENV !== 'test') {
|
|
webpackConfig.plugins?.push(new SpeedMeasurePlugin());
|
|
}
|
|
return webpackConfig;
|
|
},
|
|
dropLogLevel: 'warn',
|
|
plugins: [pluginAuth(), pluginRaxCompat()],
|
|
// eslint: true,
|
|
ssr: false,
|
|
ssg: false,
|
|
});
|