Commit 171afdc8 authored by Andrew Hrdy's avatar Andrew Hrdy

Added apple-app-site-association. Closes #48

parent 51ee81e9
Pipeline #2512 passed with stage
in 1 minute and 39 seconds
{
"webcredentials": {
"apps": [
"K5MMVK2UFR.edu.gmu.srct.whatsopen"
]
},
"applinks": {
"apps": [],
"details": [
{
"appID": "K5MMVK2UFR.edu.gmu.srct.whatsopen",
"paths": [
"/"
]
}
]
}
}
\ No newline at end of file
...@@ -15,6 +15,7 @@ import './styles/whatsOpen.scss'; ...@@ -15,6 +15,7 @@ import './styles/whatsOpen.scss';
import 'typeface-roboto'; import 'typeface-roboto';
import '../public/manifest.json'; import '../public/manifest.json';
import '../public/favicon.png'; import '../public/favicon.png';
import '../public/apple-app-site-association';
// Create a history of your choosing (we're using a browser history in this case) // Create a history of your choosing (we're using a browser history in this case)
const history = createHistory(); const history = createHistory();
......
...@@ -77,15 +77,23 @@ const fileLoader = { ...@@ -77,15 +77,23 @@ const fileLoader = {
} }
}; };
const publicFileLoader = { const faviconManifestLoader = {
type: 'javascript/auto', type: 'javascript/auto',
test: /\.(png|json)$/, test: /(favicon.png|manifest.json)$/,
loader: 'file-loader', loader: 'file-loader',
options: { options: {
name: '[name].[ext]' name: '[name].[ext]'
} }
}; };
const appleAppSiteAssociationLoader = {
test: /apple-app-site-association$/,
loader: 'file-loader',
options: {
name: '.well-known/[name]'
}
};
module.exports = { module.exports = {
eslintLoader: eslintLoader, eslintLoader: eslintLoader,
babelLoader: babelLoader, babelLoader: babelLoader,
...@@ -94,5 +102,6 @@ module.exports = { ...@@ -94,5 +102,6 @@ module.exports = {
cssExtractLoader: cssExtractLoader, cssExtractLoader: cssExtractLoader,
scssExtractLoader: scssExtractLoader, scssExtractLoader: scssExtractLoader,
fileLoader: fileLoader, fileLoader: fileLoader,
publicFileLoader: publicFileLoader faviconManifestLoader: faviconManifestLoader,
appleAppSiteAssociationLoader: appleAppSiteAssociationLoader
}; };
\ No newline at end of file
...@@ -23,7 +23,7 @@ module.exports = { ...@@ -23,7 +23,7 @@ module.exports = {
loaders.cssLoader, loaders.cssLoader,
loaders.scssLoader, loaders.scssLoader,
loaders.fileLoader, loaders.fileLoader,
loaders.publicFileLoader loaders.faviconManifestLoader
] ]
}, },
plugins: [ plugins: [
......
...@@ -28,7 +28,8 @@ module.exports = { ...@@ -28,7 +28,8 @@ module.exports = {
loaders.cssExtractLoader, loaders.cssExtractLoader,
loaders.scssExtractLoader, loaders.scssExtractLoader,
loaders.fileLoader, loaders.fileLoader,
loaders.publicFileLoader loaders.faviconManifestLoader,
loaders.appleAppSiteAssociationLoader
] ]
}, },
optimization: { optimization: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment