--- /dev/null
+DirectoryIndex index.html
+
+# By default, Apache does not evaluate symbolic links if you did not enable this
+# feature in your server configuration. Uncomment the following line if you
+# install assets as symlinks or if you experience problems related to symlinks
+# when compiling LESS/Sass/CoffeScript assets.
+# Options FollowSymlinks
+
+# Disabling MultiViews prevents unwanted negotiation, e.g. "/index" should not resolve
+# to the front controller "/index.php" but be rewritten to "/index.php/index".
+<IfModule mod_negotiation.c>
+ Options -MultiViews
+</IfModule>
+
+RewriteEngine On
+
+RewriteBase /
+
+# If the requested filename exists, simply serve it.
+# We only want to let Apache serve files and not directories.
+# Rewrite all other queries starting with _ to index.ts.
+RewriteCond %{REQUEST_FILENAME} !-f
+RewriteRule "^_/" "/index.ts" [L]
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
+ <base href="/">
<link rel="stylesheet" href="/resources/style/style.css">
<title>Document</title>
</head>
context.strokeStyle = '#ffffff';
context.stroke();
this.circleTexture.refresh();
+
+ // Let's alter browser history
+ let url = new URL(this.MapUrlFile);
+ let path = '/_/'+url.host+url.pathname;
+ if (url.hash) {
+ // FIXME: entry should be dictated by a property passed to init()
+ path += '#'+url.hash;
+ }
+ window.history.pushState({}, null, path);
}
private getExitSceneUrl(layer: ITiledMapLayer): string|undefined {
contentBase: './dist',
host: '0.0.0.0',
disableHostCheck: true,
+ historyApiFallback: {
+ rewrites: [
+ { from: /^_\/.*$/, to: '/index.html' }
+ ],
+ disableDotRule: true
+ },
},
module: {
rules: [
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'dist'),
+ publicPath: '/'
},
plugins: [
new webpack.ProvidePlugin({