build main distribution directly from source

This commit is contained in:
Shawn Erquhart
2018-07-25 05:37:38 -04:00
parent 439920c652
commit 866fcf7c99
7 changed files with 45 additions and 34 deletions

View File

@ -1,3 +1,4 @@
const path = require('path');
const babelConfig = require('../../babel.config.js');
module.exports = {
@ -5,18 +6,18 @@ module.exports = {
plugins: [
...babelConfig.plugins,
['module-resolver', {
root: './src/components',
root: path.join(__dirname, 'src/components'),
alias: {
src: './src',
Actions: './src/actions/',
Constants: './src/constants/',
Formats: './src/formats/',
Integrations: './src/integrations/',
Lib: './src/lib/',
Reducers: './src/reducers/',
Redux: './src/redux/',
Routing: './src/routing/',
ValueObjects: './src/valueObjects/',
src: path.join(__dirname, 'src'),
Actions: path.join(__dirname, 'src/actions/'),
Constants: path.join(__dirname, 'src/constants/'),
Formats: path.join(__dirname, 'src/formats/'),
Integrations: path.join(__dirname, 'src/integrations/'),
Lib: path.join(__dirname, 'src/lib/'),
Reducers: path.join(__dirname, 'src/reducers/'),
Redux: path.join(__dirname, 'src/redux/'),
Routing: path.join(__dirname, 'src/routing/'),
ValueObjects: path.join(__dirname, 'src/valueObjects/'),
}
}],
],

View File

@ -38,7 +38,7 @@ module.exports = {
},
{
test: /\.css$/,
include: [/redux-notifications/],
include: [/(redux-notifications|react-datetime)/],
use: ['to-string-loader', 'css-loader'],
},
],