Merge pull request #390 from shikorism/moment-locale
JSバンドルからMomentを除去する
This commit is contained in:
commit
57c6eff442
1
.gitignore
vendored
1
.gitignore
vendored
@ -5,6 +5,7 @@
|
|||||||
/public/hot
|
/public/hot
|
||||||
/public/storage
|
/public/storage
|
||||||
/public/mix-manifest.json
|
/public/mix-manifest.json
|
||||||
|
/public/report.html
|
||||||
/storage/*.key
|
/storage/*.key
|
||||||
/vendor
|
/vendor
|
||||||
/.idea
|
/.idea
|
||||||
|
2
resources/assets/js/home.js
vendored
2
resources/assets/js/home.js
vendored
@ -35,4 +35,4 @@ new Chart(graph.getContext('2d'), {
|
|||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
11
webpack.mix.js
vendored
11
webpack.mix.js
vendored
@ -25,9 +25,14 @@ mix.js('resources/assets/js/app.js', 'public/js')
|
|||||||
'jquery': ['$', 'jQuery', 'window.jQuery']
|
'jquery': ['$', 'jQuery', 'window.jQuery']
|
||||||
})
|
})
|
||||||
.extract(['jquery', 'bootstrap'])
|
.extract(['jquery', 'bootstrap'])
|
||||||
.extract(['chart.js', 'chartjs-color', 'color-name', 'moment'], 'public/js/vendor/chart')
|
.extract(['chart.js', 'chartjs-color', 'color-name', 'moment', 'cal-heatmap', 'd3'], 'public/js/vendor/chart')
|
||||||
.version();
|
.version()
|
||||||
|
.webpackConfig(webpack => ({
|
||||||
|
externals: {
|
||||||
|
moment: 'moment'
|
||||||
|
}
|
||||||
|
}));
|
||||||
|
|
||||||
if (process.argv.includes('-a')) {
|
if (process.argv.includes('-a')) {
|
||||||
mix.bundleAnalyzer({analyzerMode: 'static'});
|
mix.bundleAnalyzer({ analyzerMode: 'static' });
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user