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>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Mockup from '../bundle/vue-three-d-mockup.esm';
|
import Mockup from './Mockup.vue';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
|||||||
@@ -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')
|
||||||
|
|||||||
Reference in New Issue
Block a user