Importmap Install Steps
shipped in matestack-ui-vuejs 3.1
Asset Path
Rails.application.config.assets.paths << Rails.root.join("app/matestack")Cache Sweeper Path
config.importmap.cache_sweepers << Rails.root.join("app/matestack")Assets Manifest
// ...
//= link_tree ../../matestack .jsPins
# other pins...
pin "vue", to: "https://ga.jspm.io/npm:[email protected]/dist/vue.esm-browser.js" if Rails.env.development?
pin "vue", to: "https://ga.jspm.io/npm:[email protected]/dist/vue.esm-browser.prod.js" if Rails.env.production?
pin "matestack-ui-vuejs", to: "https://cdn.jsdelivr.net/npm/[email protected]/dist/matestack-ui-vuejs.esm.js" # jspm currently not working
# optional custom components
pin "some_other_component", to: "components/some_other_component.js" # do not prefix app/matestack!
pin "demo_component", to: "demo/demo_component.js" # do not prefix app/matestack!Usage
Last updated