Public path only in prod

This commit is contained in:
2022-01-29 19:17:27 +03:00
parent a7459b7557
commit 2ede037941
2 changed files with 2 additions and 2 deletions

View File

@@ -6,7 +6,7 @@
</template> </template>
<script> <script>
import Mockup from '../bundle/vue-three-d-mockup.esm'; import Mockup from './Mockup.vue';
export default { export default {
components: { components: {

View File

@@ -1,5 +1,5 @@
module.exports = { module.exports = {
publicPath: '/vue-three-d-mockup/', publicPath: process.env.NODE_ENV === 'production' ? '/vue-three-d-mockup/' : '/',
chainWebpack: (config) => { chainWebpack: (config) => {
config.module config.module
.rule('file-loader') .rule('file-loader')