Skip to content

Commit

Permalink
Prefer .min.* extensions in webpack example
Browse files Browse the repository at this point in the history
For consistency, shows that file content is minified
  • Loading branch information
colinrotherham committed Dec 7, 2022
1 parent 6242ed8 commit 92393a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions docs/examples/webpack/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">

<!--[if !IE 8]><!-->
<link rel="stylesheet" href="/assets/stylesheets/app.css">
<link rel="stylesheet" href="/assets/stylesheets/app.min.css">
<!--<![endif]-->
<!--[if IE 8]>
<link rel="stylesheet" href="/assets/stylesheets/app-ie8.css">
<link rel="stylesheet" href="/assets/stylesheets/app-ie8.min.css">
<![endif]-->
<!--[if lt IE 9]>
<script src="/assets/javascripts/html5shiv.min.js"></script>
Expand All @@ -29,6 +29,6 @@
</main>
</div>

<script src="/assets/javascripts/main.js"></script>
<script src="/assets/javascripts/main.min.js"></script>
</body>
</html>
4 changes: 2 additions & 2 deletions docs/examples/webpack/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module.exports = ({ WEBPACK_SERVE }, { mode }) => ({
generator: {
outputPath: 'assets/stylesheets',
publicPath: '/assets/stylesheets',
filename: '[name].css'
filename: '[name].min.css'
},
test: /\.scss$/,
type: 'asset',
Expand Down Expand Up @@ -77,7 +77,7 @@ module.exports = ({ WEBPACK_SERVE }, { mode }) => ({

output: {
clean: true,
filename: 'assets/javascripts/[name].js',
filename: 'assets/javascripts/[name].min.js',
library: { type: 'umd' },
path: resolve(__dirname, './public'),
publicPath: '/'
Expand Down

0 comments on commit 92393a7

Please sign in to comment.