This commit is contained in:
tamaina 2022-04-27 20:22:44 +09:00
parent b6109b229d
commit 8db5a14335
2 changed files with 5 additions and 4 deletions

View file

@ -125,7 +125,7 @@
<script lang="ts"> <script lang="ts">
import { defineComponent, defineAsyncComponent, computed } from 'vue'; import { defineComponent, defineAsyncComponent, computed } from 'vue';
import * as age from 's-age'; import age from 's-age';
import XUserTimeline from './index.timeline.vue'; import XUserTimeline from './index.timeline.vue';
import XNote from '@/components/note.vue'; import XNote from '@/components/note.vue';
import MkFollowButton from '@/components/follow-button.vue'; import MkFollowButton from '@/components/follow-button.vue';

View file

@ -8,8 +8,6 @@ import meta from '../../package.json';
const extensions = ['.ts', '.tsx', '.js', '.jsx', '.mjs', '.json', '.json5', '.svg', '.sass', '.scss', '.css', '.vue']; 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 }) => { export default defineConfig(({ command, mode }) => {
fs.mkdirSync(__dirname + '/../../built', { recursive: true }); fs.mkdirSync(__dirname + '/../../built', { recursive: true });
fs.writeFileSync(__dirname + '/../../built/meta.json', JSON.stringify({ version: meta.version }), 'utf-8'); fs.writeFileSync(__dirname + '/../../built/meta.json', JSON.stringify({ version: meta.version }), 'utf-8');
@ -59,13 +57,16 @@ export default defineConfig(({ command, mode }) => {
}, },
output: { output: {
manualChunks: { manualChunks: {
//vue: ['vue', 'vue-router', 'vuedraggable'], vue: ['vue', 'vue-router'],
}, },
}, },
}, },
cssCodeSplit: true,
outDir: __dirname + '/../../built/_client_dist_', outDir: __dirname + '/../../built/_client_dist_',
assetsDir: '.', assetsDir: '.',
emptyOutDir: false, emptyOutDir: false,
sourcemap: process.env.NODE_ENV !== 'production',
reportCompressedSize: false,
}, },
} }
}); });