We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This works fine for me in dev mode, but production builds fail if I load ./index.html ./dist/index.html
from the browser. My url looks like: localhost/codepan and it's in /var/www/html/codepan
The text was updated successfully, but these errors were encountered:
You should use a subdomain or change poi.config.js as this:
poi.config.js
const OfflinePlugin = require('offline-plugin') module.exports = options => ({ postcss: [ require('postcss-nested'), require('postcss-property-lookup') ], extendWebpack(config) { // inject offline-plugin in production build if (options.mode === 'production') { config .output.publicPath('./') config.plugin('offline') .use(OfflinePlugin, [{ caches: { main: [':rest:'] }, ServiceWorker: { events: true }, AppCache: { events: true } }]) } }, production: { sourceMap: false } })
Sorry, something went wrong.
The simplest way is setting homepage: './' (works for all hash router) or homepage: '/codepan/' in your case, see https://poi.js.org/#/options?id=homepage
homepage: './'
homepage: '/codepan/'
No branches or pull requests
This works fine for me in dev mode, but production builds fail if I load
./index.html
./dist/index.html
from the browser. My url looks like: localhost/codepan and it's in /var/www/html/codepan
The text was updated successfully, but these errors were encountered: