Browse Source

Disable Hash from webpack

master
Shyim 7 years ago
parent
commit
cbad699ed6
  1. 6
      public/theme/build/webpack.prod.conf.js
  2. 2
      src/Command/CronRunnerCommand.php
  3. 14
      templates/index.twig

6
public/theme/build/webpack.prod.conf.js

@ -23,8 +23,8 @@ var webpackConfig = merge(baseWebpackConfig, {
devtool: config.build.productionSourceMap ? '#source-map' : false, devtool: config.build.productionSourceMap ? '#source-map' : false,
output: { output: {
path: config.build.assetsRoot, path: config.build.assetsRoot,
filename: utils.assetsPath('js/[name].[chunkhash].js'), filename: utils.assetsPath('js/[name].js'),
chunkFilename: utils.assetsPath('js/[id].[chunkhash].js') chunkFilename: utils.assetsPath('js/[id].js')
}, },
plugins: [ plugins: [
// http://vuejs.github.io/vue-loader/en/workflow/production.html // http://vuejs.github.io/vue-loader/en/workflow/production.html
@ -39,7 +39,7 @@ var webpackConfig = merge(baseWebpackConfig, {
}), }),
// extract css into its own file // extract css into its own file
new ExtractTextPlugin({ new ExtractTextPlugin({
filename: utils.assetsPath('css/[name].[contenthash].css') filename: utils.assetsPath('css/[name].css')
}), }),
// Compress extracted CSS. We are using this plugin so that possible // Compress extracted CSS. We are using this plugin so that possible
// duplicated CSS from different components can be deduped. // duplicated CSS from different components can be deduped.

2
src/Command/CronRunnerCommand.php

@ -66,6 +66,4 @@ class CronRunnerCommand extends Command
$this->connection->executeQuery('TRUNCATE queue'); $this->connection->executeQuery('TRUNCATE queue');
} }
} }
} }

14
templates/index.twig

@ -2,19 +2,19 @@
<html> <html>
<head> <head>
<meta charset=utf-8> <meta charset=utf-8>
<link rel=icon type=image/png sizes=96x96 href=static/img/favicon.png> <link rel=icon type=image/png sizes=96x96 href="/static/img/favicon.png">
<meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1"> <meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1">
<title>ReCast</title> <title>ReCast</title>
<meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"> <meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel=stylesheet> <link href=https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css rel=stylesheet>
<link href="https://fonts.googleapis.com/css?family=Roboto:400,700,300" rel=stylesheet type=text/css> <link href="https://fonts.googleapis.com/css?family=Roboto:400,700,300" rel=stylesheet type=text/css>
<link href=/static/css/nucleo-icons.css rel=stylesheet> <link href="/static/css/nucleo-icons.css" rel=stylesheet>
<link href=/static/css/app.f9e0b920ba08f55e25099eb5b6906de1.css rel=stylesheet> <link href="/static/css/app.css" rel=stylesheet>
</head> </head>
<body> <body>
<div id=app></div> <div id=app></div>
<script type=text/javascript src="/static/js/manifest.a8b934d3f99d55aa1097.js"></script> <script type=text/javascript src="/static/js/manifest.js"></script>
<script type=text/javascript src="/static/js/vendor.351879f02e55740f07af.js"></script> <script type=text/javascript src="/static/js/vendor.js"></script>
<script type=text/javascript src="/static/js/app.33f5a9dd38d26db01c10.js"></script> <script type=text/javascript src="/static/js/app.js"></script>
</body> </body>
</html> </html>
Loading…
Cancel
Save