Skip to content

Instantly share code, notes, and snippets.

@springeye
Last active December 27, 2016 07:09
Show Gist options
  • Save springeye/d82793b42d50ddfe5d050933a9c114b8 to your computer and use it in GitHub Desktop.
Save springeye/d82793b42d50ddfe5d050933a9c114b8 to your computer and use it in GitHub Desktop.
vue webpack add bootstrap support
import Vue from 'vue'
import App from './App'
require('expose?$!expose?jQuery!jquery')//add this line
require('bootstrap-webpack')//add this line
/* eslint-disable no-new */
new Vue({
el: 'body',
components: { App }
})
npm i jquery bootstrap-webpack bootstrap exports-loader imports-loader less-loader style-loader less expose-loader url-loader extract-text-webpack-plugin --save-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment