
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
leitjohn-webpack-starter
Advanced tools
Use this to get up and running with webpack
You just need to create a snippet like this in a file called webpack.config.js
configure = require("leitjohn-webpack-starter").configure;
config = configure({
src: "source/",
dest: "../../[django-app]/static/"
});
module.exports = config;
Here are the configuration defaults:
src: "src/" # source files dest: "lib/" # compiled file destination maps: "maps/" # source maps destination www: "www/" # for webpack-dev-server files root styles: "styles/" # if you have styles you'd like to pack too test: "test/" # if you have tests to run templates: "templates/" # if you have nunjucks templates
Bonus! here is an html template for you to drop in www/
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>sample</title>
<link href="bundle.css" rel="stylesheet">
</head>
<body>
<div id="app" class="container">
loading...
</div><!-- /.container -->
<script src="bundle.js"></script>
<script>
window.app = new Main({apiRoot: "http://192.168.10.112:8005/api"});
app.render()
</script>
</body>
</html>
FAQs
Helps me get started with a webpack config
We found that leitjohn-webpack-starter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.