Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
@byuhbll/hbll-dev-server
Advanced tools
Helper function to integrate Django and BrowserSync with webpack-dev-server.
Helper function to integrate Django and BrowserSync with webpack-dev-server.
$ npm install --save-dev @byuhbll/hbll-dev-server
// webpack.config.js
const hbllDevServer = require('@byuhbll/hbll-dev-server');
module.exports = {
...
devServer: hbllDevServer({
port: 8000,
// optionally run and proxy Django dev server
django: {
host: '127.0.0.1',
port: 8001,
settings: 'config/settings/dev.py',
restartPatterns: ['./**/*.py', './config.yml', '!node_modules'],
useRunserverPlus: true,
},
// see BrowserSync docs for valid BrowserSync config options:
// https://www.browsersync.io/docs/options
browsersync: {
files: [
'./core/static/css/**/*.css',
'./core/static/img/**/*',
'./core/templates/**/*.html',
],
},
// hbllDevServer also takes devServer config options and forwards them.
// See the webpack-dev-server docs for valid config options:
// https://webpack.js.org/configuration/dev-server/
stats: { timings: true, chunks: false, modules: false },
}),
};
The django
and browsersync
options are not required, and if left out, will not be integrated into the devServer
config. All django
and browsersync
settings are optional as well, providing sane defaults.
Once you've configured your dev server, start it up:
$ webpack-dev-server --mode development --hot
FAQs
Helper function to integrate Django and BrowserSync with webpack-dev-server.
The npm package @byuhbll/hbll-dev-server receives a total of 0 weekly downloads. As such, @byuhbll/hbll-dev-server popularity was classified as not popular.
We found that @byuhbll/hbll-dev-server 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.
Security News
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.