Fork from chessboardjs that makes the module work with Vue and Webpack
Please see chessboardjs.com for documentation and examples.
# NPM
npm install chessboardjs-vue
<div id="board1" style="width: 400px"></div>
//Vue
import ChessBoard from "chessboardjs-vue";
export default {
mounted(){
ChessBoard('board1',"start");
}
}
Please see chessboardjs.com for documentation and examples.
- first I exported the constructor function instead of using jquery
- second I linked the board css
- third I linked the Chess pisces images
- Docs - http://chessboardjs.com/docs
- Examples - http://chessboardjs.com/examples
MIT License