Last active
December 27, 2016 07:09
-
-
Save springeye/d82793b42d50ddfe5d050933a9c114b8 to your computer and use it in GitHub Desktop.
vue webpack add bootstrap support
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 } | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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