Skip to content

Commit e8627cf

Browse files
committed
Use .min.js as js path to prevent ocs asset pipeline from breaking the code
1 parent 64ed535 commit e8627cf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

templates/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
<?php script($_['appId'], ['../build/main']); ?>
2-
<?php style($_['appId'], ['../build/main']); ?>
1+
<?php script($_['appId'], ['../build/main.min']); ?>
2+
<?php style($_['appId'], ['../build/main.min']); ?>

webpack/prod.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = {
1717
},
1818
output: {
1919
path: assetsPath,
20-
filename: '[name].js',
20+
filename: '[name].min.js',
2121
chunkFilename: '[name]-[chunkhash].js',
2222
publicPath: '/dist/'
2323
},
@@ -54,7 +54,7 @@ module.exports = {
5454
},
5555
plugins: [
5656
new CleanPlugin([relativeAssetsPath]),
57-
new ExtractTextPlugin("[name].css"),
57+
new ExtractTextPlugin("[name].min.css"),
5858
new webpack.DefinePlugin({
5959
__CLIENT__: true,
6060
__SERVER__: false,

0 commit comments

Comments
 (0)