Remove hashes from filenames for now

merge-requests/1/head
Alex Gleason 2020-03-27 22:13:36 -05:00
rodzic 882b302408
commit 346bfd5d8d
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
4 zmienionych plików z 24 dodań i 28 usunięć

Wyświetl plik

@ -1,15 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1,user-scalable=no">
<title>Soapbox</title>
<!--server-generated-meta-->
<link rel="icon" type="image/png" href="/favicon.png">
</head>
<body class="hidden">
<noscript>To use Soapbox, please enable JavaScript.</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>

18
public/index.html 100644
Wyświetl plik

@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1,user-scalable=no">
<title>Soapbox</title>
<link rel="icon" type="image/png" href="/favicon.png">
<link rel="stylesheet" href="/packs/css/common.css">
<link rel="stylesheet" href="/packs/css/lime.chunk.css">
<script src="/packs/js/common.js"></script>
<script src="/packs/js/locale_en.chunk.js"></script>
<script src="/packs/js/application.chunk.js"></script>
</head>
<body class="app-body theme-lime no-reduce-motion">
<noscript>To use Soapbox, please enable JavaScript.</noscript>
<div class="app-holder" data-props="{&quot;locale&quot;:&quot;en&quot;}" id="gabsocial"></div>
</body>
</html>

Wyświetl plik

@ -1,6 +1,6 @@
// Note: You must restart bin/webpack-dev-server for changes to take effect
const { resolve } = require('path');
const { resolve, join } = require('path');
const merge = require('webpack-merge');
const sharedConfig = require('./shared');
const { settings, output } = require('./configuration');
@ -60,11 +60,4 @@ module.exports = merge(sharedConfig, {
),
serveIndex: true,
},
plugins: [
// https://github.com/ampedandwired/html-webpack-plugin
new HtmlWebpackPlugin({
inject: true
})
],
});

Wyświetl plik

@ -34,9 +34,9 @@ module.exports = {
),
output: {
filename: 'js/[name]-[chunkhash].js',
chunkFilename: 'js/[name]-[chunkhash].chunk.js',
hotUpdateChunkFilename: 'js/[id]-[hash].hot-update.js',
filename: 'js/[name].js',
chunkFilename: 'js/[name].chunk.js',
hotUpdateChunkFilename: 'js/[id].hot-update.js',
path: output.path,
publicPath: output.publicPath,
},
@ -75,8 +75,8 @@ module.exports = {
}
),
new MiniCssExtractPlugin({
filename: 'css/[name]-[contenthash:8].css',
chunkFilename: 'css/[name]-[contenthash:8].chunk.css',
filename: 'css/[name].css',
chunkFilename: 'css/[name].chunk.css',
}),
new AssetsManifestPlugin({
integrity: false,