LoginSignup
0
0

More than 5 years have passed since last update.

poiでvueにaliasを貼りたい

Last updated at Posted at 2018-04-10

poiとは

webpackで動くzero config bundlerです。
ある程度のテンプレート設定を素早く構築するためのツールです。

こんなんでた

[Vue warn]: You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build.

結論

https://www.npmjs.com/package/poi-preset-resolve-alias
npmがあるのでこれを使ってください

poi.config.js
    require('poi-preset-resolve-alias')({
          'Vue': 'vue/dist/vue.esm.js'
    })

なぜ発生するか

公式を見るとわかりやすいです

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