mirror of
https://github.com/standardnotes/app.git
synced 2026-01-16 23:01:30 +00:00
* feat: reduce number of steps to get going for local development * fix: set default sync server in SNJS * chore: keep --force in submodules command
31 lines
787 B
JavaScript
31 lines
787 B
JavaScript
const merge = require('webpack-merge');
|
|
const config = require('./webpack.config.js');
|
|
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
|
|
|
module.exports = (env, argv) => {
|
|
const port = argv.port || 3001;
|
|
return merge(config(env, argv), {
|
|
mode: 'development',
|
|
plugins: [
|
|
new HtmlWebpackPlugin({
|
|
template: './index.html',
|
|
templateParameters: {
|
|
env: process.env
|
|
},
|
|
}),
|
|
],
|
|
devServer: {
|
|
proxy: {
|
|
'/extensions': {
|
|
target: `http://localhost:${port}`,
|
|
pathRewrite: { '^/extensions': '/public/extensions' }
|
|
},
|
|
'/assets': {
|
|
target: `http://localhost:${port}`,
|
|
pathRewrite: { '^/assets': '/public/assets' }
|
|
},
|
|
},
|
|
port,
|
|
}
|
|
});
|
|
};
|