Releases: studiometa/webpack-config
Releases · studiometa/webpack-config
v2.1.0
v2.0.1
v2.0.0
v2.0.0-alpha.7
Simplification of the package by exposing a CLI tool to setup a dev server and build assets for production.
Available commands
# Start the dev server
meta dev
# Build assets for production
meta build
Configuration
The CLI can be configured with a meta.config.js
file describing the entries, output path and public path of your assets. For example:
module.exports = {
/**
* Entries are resolved with the webpack-glob-entry package
*/
src: [
'./src/js/**/*.js',
'./src/css/**/[!_]*.scss'
],
dist: './dist',
public: '/dist/',
/**
* Analyze the bundle with the WebpackBundleAnalyzer plugin
*/
analyze: false,
/**
* Extends the Webpack configuration
*/
webpack(config) {},
/**
* Configure `sass-loader`
*/
sassOptions: {
// See https://github.com/webpack-contrib/sass-loader#sassoptions
},
};
The development server can be configured with the following environment variables to define in a .env
file:
APP_HOST=local.fqdn.com
APP_SSL=true
APP_SSL_CERT=../path/to/ssl/cert
APP_SSL_KEY=../path/to/ssl/key
v1.1.2
v1.1.1
v1.1.0
v1.0.1
v1.0.0
Yay, a first release! 🎉
v0.0.0
First draft release! 🎉