Skip to content
This repository has been archived by the owner on Oct 24, 2018. It is now read-only.

set library name per target, requires webpack >= 3.1.0 #67

Merged
merged 1 commit into from
Aug 31, 2018

Conversation

manelclos
Copy link
Contributor

@manelclos manelclos commented Jun 27, 2018

Hi, this fixes #15

Starting on webpack 3.1.0, library parameter can be a dictionary, see feature at the very end of https://webpack.js.org/configuration/output/#module-definition-systems

I've updated webpack to version 3 which does not pull in any other dependency

The library name when using a script tag is set to VueTabs, using capitalisation suggested in the webpack example (instead of ‘vuetabs')

Easy testing with docs/index.html and using this code instead of app.js:

<script src="https://unpkg.com/[email protected]/dist/vue.js"></script>
<script src="../dist/index.js"></script>
<script>
var Tabs = VueTabs.Tabs;
var Tab = VueTabs.Tab;
var app = new Vue({
    el: '#app',
    components: {
      Tabs,
      Tab
    }
});
</script>

@sebastiandedeyne sebastiandedeyne merged commit e2aad1e into spatie:master Aug 31, 2018
@sebastiandedeyne
Copy link
Member

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using the library with a <script> tag
2 participants