how to Use Materialize js with vue-cli

时间:2018-02-03 08:01:53

标签: vuejs2 vue-cli

I'm using vue-cli, i have installed materialize using "npm install materialize-css"

then i required that in my main.js file

require("materialize-css/dist/css/materialize.css");
require("materialize-css/dist/js/materialize.js");

it doesn't loads my js file. how to include materialize.js in vue-cli. can someone guide me on this.?

0 个答案:

没有答案