mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-01-22 21:08:13 -05:00
Better webpack chunking
This commit is contained in:
parent
a73cbc7116
commit
c15edf318d
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "nginx-proxy-manager",
|
"name": "nginx-proxy-manager",
|
||||||
"version": "2.0.3",
|
"version": "2.0.4",
|
||||||
"description": "A beautiful interface for creating Nginx endpoints",
|
"description": "A beautiful interface for creating Nginx endpoints",
|
||||||
"main": "src/backend/index.js",
|
"main": "src/backend/index.js",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
@ -30,8 +30,8 @@
|
|||||||
"style-loader": "^0.22.1",
|
"style-loader": "^0.22.1",
|
||||||
"tabler-ui": "git+https://github.com/tabler/tabler.git",
|
"tabler-ui": "git+https://github.com/tabler/tabler.git",
|
||||||
"underscore": "^1.8.3",
|
"underscore": "^1.8.3",
|
||||||
"webpack": "^4.12.0",
|
"webpack": "^4.25.1",
|
||||||
"webpack-cli": "^3.0.8",
|
"webpack-cli": "^3.1.2",
|
||||||
"webpack-visualizer-plugin": "^0.1.11"
|
"webpack-visualizer-plugin": "^0.1.11"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -5,5 +5,5 @@
|
|||||||
<span class="loader"></span>
|
<span class="loader"></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script type="text/javascript" src="/js/main.js?v=<%= version %>"></script>
|
<script type="text/javascript" src="/js/main.bundle.js?v=<%= version %>"></script>
|
||||||
<%- include partials/footer.ejs %>
|
<%- include partials/footer.ejs %>
|
||||||
|
@ -5,5 +5,5 @@
|
|||||||
<span class="loader"></span>
|
<span class="loader"></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script type="text/javascript" src="/js/login.js?v=<%= version %>"></script>
|
<script type="text/javascript" src="/js/main.bundle.js?v=<%= version %>"></script>
|
||||||
<%- include partials/footer.ejs %>
|
<%- include partials/footer.ejs %>
|
||||||
|
@ -10,9 +10,10 @@ module.exports = {
|
|||||||
login: './src/frontend/js/login.js'
|
login: './src/frontend/js/login.js'
|
||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
path: path.resolve(__dirname, 'dist'),
|
path: path.resolve(__dirname, 'dist'),
|
||||||
filename: 'js/[name].js',
|
filename: 'js/[name].bundle.js',
|
||||||
publicPath: '/'
|
chunkFilename: 'js/[name].bundle.[id].js',
|
||||||
|
publicPath: '/'
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
@ -108,10 +109,6 @@ module.exports = {
|
|||||||
to: 'images',
|
to: 'images',
|
||||||
toType: 'dir',
|
toType: 'dir',
|
||||||
context: '/app'
|
context: '/app'
|
||||||
}]),
|
}])
|
||||||
new webpack.optimize.LimitChunkCountPlugin({
|
|
||||||
maxChunks: 1, // Must be greater than or equal to one
|
|
||||||
minChunkSize: 999999999
|
|
||||||
})
|
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user