✌️
This commit is contained in:
parent
b6109b229d
commit
8db5a14335
2 changed files with 5 additions and 4 deletions
|
@ -125,7 +125,7 @@
|
|||
|
||||
<script lang="ts">
|
||||
import { defineComponent, defineAsyncComponent, computed } from 'vue';
|
||||
import * as age from 's-age';
|
||||
import age from 's-age';
|
||||
import XUserTimeline from './index.timeline.vue';
|
||||
import XNote from '@/components/note.vue';
|
||||
import MkFollowButton from '@/components/follow-button.vue';
|
||||
|
|
|
@ -8,8 +8,6 @@ import meta from '../../package.json';
|
|||
|
||||
const extensions = ['.ts', '.tsx', '.js', '.jsx', '.mjs', '.json', '.json5', '.svg', '.sass', '.scss', '.css', '.vue'];
|
||||
|
||||
const isProduction = process.env.NODE_ENV === 'production';
|
||||
|
||||
export default defineConfig(({ command, mode }) => {
|
||||
fs.mkdirSync(__dirname + '/../../built', { recursive: true });
|
||||
fs.writeFileSync(__dirname + '/../../built/meta.json', JSON.stringify({ version: meta.version }), 'utf-8');
|
||||
|
@ -59,13 +57,16 @@ export default defineConfig(({ command, mode }) => {
|
|||
},
|
||||
output: {
|
||||
manualChunks: {
|
||||
//vue: ['vue', 'vue-router', 'vuedraggable'],
|
||||
vue: ['vue', 'vue-router'],
|
||||
},
|
||||
},
|
||||
},
|
||||
cssCodeSplit: true,
|
||||
outDir: __dirname + '/../../built/_client_dist_',
|
||||
assetsDir: '.',
|
||||
emptyOutDir: false,
|
||||
sourcemap: process.env.NODE_ENV !== 'production',
|
||||
reportCompressedSize: false,
|
||||
},
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue