has MD5 value, and the packaged hash value is also different each time js changes the code, but the user must refresh the page cache to use
normally.has MD5 value, and the packaged hash value is also different each time js changes the code, but the user must refresh the page cache to use
normally. index.html is cached
the cached index.html refers to the old js and css resources, which are also cached by the browser, so the last visited page is loaded.
modify the nginx configuration
location / {
index index.html;
if ($uri ~* "html$") {
add_header Cache-Control "no-cache, no-store, max-age=0, must-revalidate";
}
}
check whether index.html has set cache in Nginx
check whether the project's vendor.js common.js has hash
? It feels normal.
the npm start command runs normally, but the error will be reported when executing with npm run build as follows: syntax error: Unexpected token (Unexpected token (26:6) my index.js: import React, { Component } from react ; import ReactDOM from...
has the following react components: import ". Home.scss"; class Home extends React.Component{ render(){ return ( <div className="box clearfix"> <div className="left"> ...
the newcomer, in the process of building according to the steps on the Internet, the following error occurred: paste the configuration file about less code: webpack.config.dev.js { test: [ .css$ , .less$ ], use: [ ...
webpack.config.js const path = require( path ) const webpack = require( webpack ) const ExtractTextWebapckPlugin = require( extract-text-webpack-plugin ) CSS const HtmlWebpackPlugin = require( html-webpack-plugin ) module.exports = { entr...