@yauheni-shcharbakou/rxspa-webpack
v1.0.0
Published
Webpack bundler for @yauheni-shcharbakou/rxspa framework
Readme
rxspa-webpack
Webpack bundler for @yauheni-shcharbakou/rxspa framework
Installation
Install via npm:
npm install @yauheni-shcharbakou/rxspa-webpackInstall via yarn:
yarn add @yauheni-shcharbakou/rxspa-webpackUsage
You can use it in webpack.config.ts, as in example below:
import { join } from 'path';
import { WebpackConfig, WebpackParams, webpackDevConfig, webpackProdConfig } from '@yauheni-shcharbakou/rxspa-webpack';
const isProduction = process.env.NODE_ENV === 'production';
const webpackParams: WebpackParams = {
entry: join(__dirname, 'src', 'main.ts'),
output: join(__dirname, 'dist'),
htmlEntry: join(__dirname, 'public', 'index.html'),
favicon: join(__dirname, 'public', 'favicon.ico'),
watchFiles: [join(__dirname, 'src')],
};
const webpackConfig: WebpackConfig = (isProduction ? webpackProdConfig : webpackDevConfig)(
webpackParams,
);
export default webpackConfig;