/* eslint-disable */
const path = require('path');
const webpack = require('webpack');

const makeConfig = require('./config.base');


// The app/ dir
const app_root = path.resolve(__dirname, '..');
const filenameTemplate = 'webapp/[name]';


const config = makeConfig({
    filenameTemplate: filenameTemplate,

    mode: 'development',

    devtool: 'eval-source-map',

    namedModules: true,
    minimize: false,

    // Needed for inline CSS (via JS) - see set-public-path.js for more info
    prependSources: [path.resolve(app_root, 'webpack', 'set-public-path.js')],

    // This must be same as Django's STATIC_URL setting
    publicPath: '/static/',

    plugins: [],

    performance: {
        hints: 'warning',
    },
});
console.log("Using DEV config");


module.exports = config;

/* eslint-disable */
const path = require('path');
const webpack = require('webpack');

const makeConfig = require('./config.base');


// The app/ dir
const app_root = path.resolve(__dirname, '..');
const filenameTemplate = 'webapp/[name]';


const config = makeConfig({
    filenameTemplate: filenameTemplate,

    mode: 'development',

    devtool: 'eval-source-map',

    namedModules: true,
    minimize: false,

    // Needed for inline CSS (via JS) - see set-public-path.js for more info
    prependSources: [path.resolve(app_root, 'webpack', 'set-public-path.js')],

    // This must be same as Django's STATIC_URL setting
    publicPath: '/assets/',

    plugins: [],

    performance: {
        hints: 'warning',
    },
});
console.log("Using DEV config");


module.exports = config;

Fix wrong public URL for static in webpack
Fix wrong public URL for static in webpack

After a recent change, `STATIC_URL` is now `assets` in the webapp.
The webpack config has not been updated though, and the frontend was trying an old URL.
