mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
Build and handle jsfiles using webpack instead of django-pipeline.
Also renames bundle.js to translations.js.
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
var path = require('path');
|
||||
|
||||
module.exports = {
|
||||
entry: [
|
||||
'./static/js/src/main.js',
|
||||
],
|
||||
output: {
|
||||
path: path.resolve(__dirname, '../static/js'),
|
||||
filename: 'bundle.js',
|
||||
module.exports = {
|
||||
context: path.resolve(__dirname, "../"),
|
||||
entry: {
|
||||
translations: ['./static/js/translations.js'],
|
||||
},
|
||||
output: {
|
||||
path: path.resolve(__dirname, '../static/webpack-bundles'),
|
||||
filename: '[name].js',
|
||||
},
|
||||
plugins: [],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user