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';
import 'typeface-roboto';
import '../public/manifest.json';
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)
const history = createHistory();
......
......@@ -77,15 +77,23 @@ const fileLoader = {
}
};
const publicFileLoader = {
const faviconManifestLoader = {
type: 'javascript/auto',
test: /\.(png|json)$/,
test: /(favicon.png|manifest.json)$/,
loader: 'file-loader',
options: {
name: '[name].[ext]'
}
};
const appleAppSiteAssociationLoader = {
test: /apple-app-site-association$/,
loader: 'file-loader',
options: {
name: '.well-known/[name]'
}
};
module.exports = {
eslintLoader: eslintLoader,
babelLoader: babelLoader,
......@@ -94,5 +102,6 @@ module.exports = {
cssExtractLoader: cssExtractLoader,
scssExtractLoader: scssExtractLoader,
fileLoader: fileLoader,
publicFileLoader: publicFileLoader
faviconManifestLoader: faviconManifestLoader,
appleAppSiteAssociationLoader: appleAppSiteAssociationLoader
};
\ No newline at end of file
......@@ -23,7 +23,7 @@ module.exports = {
loaders.cssLoader,
loaders.scssLoader,
loaders.fileLoader,
loaders.publicFileLoader
loaders.faviconManifestLoader
]
},
plugins: [
......
......@@ -28,7 +28,8 @@ module.exports = {
loaders.cssExtractLoader,
loaders.scssExtractLoader,
loaders.fileLoader,
loaders.publicFileLoader
loaders.faviconManifestLoader,
loaders.appleAppSiteAssociationLoader
]
},
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