mirror of
https://github.com/Doodle3D/Doodle3D-Core.git
synced 2025-01-03 08:33:48 +01:00
fix resolve
This commit is contained in:
parent
e85aaa0d0d
commit
f63b447e0a
@ -2,6 +2,8 @@ const path = require('path');
|
|||||||
// const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
|
// const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
|
||||||
const HTMLWebpackPlugin = require('html-webpack-plugin');
|
const HTMLWebpackPlugin = require('html-webpack-plugin');
|
||||||
|
|
||||||
|
const devMode = process.env.NODE_ENV !== 'production';
|
||||||
|
|
||||||
const babelLoader = {
|
const babelLoader = {
|
||||||
loader: 'babel-loader',
|
loader: 'babel-loader',
|
||||||
options: {
|
options: {
|
||||||
@ -26,7 +28,7 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
'doodle3d-slicer': path.resolve(__dirname, '../src/index.js'),
|
'doodle3d-core': path.resolve(__dirname, devMode ? 'module' : 'lib'),
|
||||||
'clipper-lib': '@doodle3d/clipper-lib',
|
'clipper-lib': '@doodle3d/clipper-lib',
|
||||||
'clipper-js': '@doodle3d/clipper-js',
|
'clipper-js': '@doodle3d/clipper-js',
|
||||||
'cal': '@doodle3d/cal',
|
'cal': '@doodle3d/cal',
|
||||||
|
Loading…
Reference in New Issue
Block a user