mirror of
https://github.com/anatolykopyl/vue-three-d-mockup.git
synced 2026-03-26 04:45:09 +00:00
Public path only in prod
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Mockup from '../bundle/vue-three-d-mockup.esm';
|
||||
import Mockup from './Mockup.vue';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
module.exports = {
|
||||
publicPath: '/vue-three-d-mockup/',
|
||||
publicPath: process.env.NODE_ENV === 'production' ? '/vue-three-d-mockup/' : '/',
|
||||
chainWebpack: (config) => {
|
||||
config.module
|
||||
.rule('file-loader')
|
||||
|
||||
Reference in New Issue
Block a user