LoginSignup
0
0

More than 1 year has passed since last update.

vue3 で laravelmix element plus をインストール

Posted at

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');

以上

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0