LoginSignup
3
1

More than 5 years have passed since last update.

vue-onsenui-navigator使ってサーバーに置く際の注意

Posted at

Vue + OnsenUI開発のテンプレと思われる

においてnpm run buildで作成されたファイルをApacheなどが動いてるサーバーに配布する際の注意

vue-onsenui-navigator/config/index.js
    assetsPublicPath: '/',

を設定しましょう。

http://hoge/~hoge/
でアクセスできるならば

vue-onsenui-navigator/config/index.js
    assetsPublicPath: '/~hoge/',

って言う感じにしてnpm run buildして配布しましょう。(最初の/重要です)

JavaScript開発慣れてる方なら当たり前なんでしょうが、私はこれで1時間悩みましたので書いておきます~

3
1
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
3
1