vue3 で laravelmix element plus をインストール
element plus をインスコ
npm install element-plus --save
webpackに追加
webpack.mix.js
mix.webpackConfig(
{
module:
{
rules:
[
{
test: /\.mjs$/,
resolve: { fullySpecified: false },
include: /node_modules/,
type: "javascript/auto"
}
]
},
}
);
絶対パスで読み込みましょう
app.js
import ElementPlus from '/var/www/html/your/node_modules/element-plus/'
import '/var/www/html/your/node_modules/element-plus/dist/index.css'
app.use(ElementPlus)
app.mount('#app');
以上
Author And Source
この問題について(vue3 で laravelmix element plus をインストール), 我々は、より多くの情報をここで見つけました https://qiita.com/ma7ma7pipipi/items/d172182fabf6c2248a08著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .