mirror of
https://github.com/Shopify/draggable.git
synced 2025-12-08 20:15:56 +00:00
17 lines
482 B
TypeScript
17 lines
482 B
TypeScript
import webpack from 'webpack';
|
|
|
|
import {isProd, useAnalyser} from './build/config';
|
|
import {createConfig as createDevelopmentConfig} from './build/development';
|
|
import {createConfig as createProductionConfig} from './build/production';
|
|
import {runner} from './build/runner';
|
|
|
|
let compiler;
|
|
|
|
if (isProd) {
|
|
compiler = webpack(createProductionConfig({analyser: useAnalyser}));
|
|
} else {
|
|
compiler = webpack(createDevelopmentConfig({analyser: useAnalyser}));
|
|
}
|
|
|
|
compiler.run(runner);
|