Webpack: use one entrypoint

public-report
Alex Gleason 2021-09-10 19:30:47 -05:00
rodzic e5fd60dbdb
commit ec474ba4c2
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
2 zmienionych plików z 6 dodań i 4 usunięć

Wyświetl plik

@ -2,6 +2,9 @@ import loadPolyfills from './soapbox/load_polyfills';
require.context('./images/', true);
// Load stylesheet
require('./styles/application.scss');
loadPolyfills().then(() => {
require('./soapbox/main').default();
}).catch(e => {

Wyświetl plik

@ -30,10 +30,9 @@ const makeHtmlConfig = (params = {}) => {
};
module.exports = {
entry: Object.assign(
{ application: resolve('app/application.js') },
{ styles: resolve(join(settings.source_path, 'styles/application.scss')) },
),
entry: {
application: resolve('app/application.js'),
},
output: {
filename: 'packs/js/[name]-[chunkhash].js',