add new entry
This commit is contained in:
parent
74957cef1b
commit
3e2695801d
1105
dist/bootstrap.js
vendored
Normal file
1105
dist/bootstrap.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
dist/bootstrap.js.map
vendored
Normal file
1
dist/bootstrap.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
7
src/main.js
Normal file
7
src/main.js
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
const sysytemJs = require("systemjs/dist/system");
|
||||||
|
|
||||||
|
module.export = ({ apps, navigations, config }) => {
|
||||||
|
console.log("apps", apps);
|
||||||
|
|
||||||
|
sysytemJs.import("./main/index.js");
|
||||||
|
};
|
@ -8,14 +8,11 @@ const outputDirectory = 'dist';
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
mode: 'development',
|
mode: 'development',
|
||||||
entry: {
|
entry: {
|
||||||
bootstrap: ['./src/main.tsx'],
|
bootstrap: ['./src/main.js']
|
||||||
example: ['./src/example/main.tsx'],
|
|
||||||
example2: ['./src/example2/main.tsx']
|
|
||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
filename: '[name].js',
|
filename: '[name].js',
|
||||||
path: path.resolve(__dirname, outputDirectory),
|
path: path.resolve(__dirname, outputDirectory),
|
||||||
libraryTarget: 'umd',
|
|
||||||
globalObject: `(typeof self !== 'undefined' ? self : this)`
|
globalObject: `(typeof self !== 'undefined' ? self : this)`
|
||||||
},
|
},
|
||||||
node: {
|
node: {
|
||||||
@ -25,17 +22,7 @@ module.exports = {
|
|||||||
new CleanWebpackPlugin(),
|
new CleanWebpackPlugin(),
|
||||||
new webpack.DefinePlugin({
|
new webpack.DefinePlugin({
|
||||||
'typeof window': JSON.stringify('object')
|
'typeof window': JSON.stringify('object')
|
||||||
}),
|
})
|
||||||
new webpackCopy([
|
|
||||||
{ from: 'stubs/index.html' },
|
|
||||||
{ from: 'stubs/importmap.json' },
|
|
||||||
{ from: './node_modules/systemjs/dist', to: 'extlib/systemjs' },
|
|
||||||
{ from: './node_modules/react/umd', to: 'extlib/react' },
|
|
||||||
{ from: './node_modules/react-dom/umd', to: 'extlib/react-dom' },
|
|
||||||
{ from: './node_modules/uds-news-original/dist' },
|
|
||||||
{ from: './node_modules/uds-org/dist' },
|
|
||||||
{ from: './node_modules/uds-sections-origin/dist' }
|
|
||||||
])
|
|
||||||
],
|
],
|
||||||
devtool: '#source-map',
|
devtool: '#source-map',
|
||||||
//devtool: 'none',
|
//devtool: 'none',
|
||||||
@ -57,12 +44,5 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
},
|
|
||||||
externals: {
|
|
||||||
'react': 'react',
|
|
||||||
'react-dom': 'react-dom',
|
|
||||||
'redux': 'redux',
|
|
||||||
'react-redux': 'react-redux',
|
|
||||||
'styled-components': 'styled-components'
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user