Fixing others

This commit is contained in:
Jake Archibald
2019-02-21 15:02:17 +00:00
parent 0388bde540
commit 1ace858bfe

View File

@@ -40,7 +40,7 @@ module.exports = async function (_, env) {
return { return {
mode: isProd ? 'production' : 'development', mode: isProd ? 'production' : 'development',
entry: { entry: {
'first-interaction': './src/index' 'first-interaction': path.join('.', 'src', 'index'),
}, },
devtool: isProd ? 'source-map' : 'inline-source-map', devtool: isProd ? 'source-map' : 'inline-source-map',
stats: 'minimal', stats: 'minimal',
@@ -54,13 +54,13 @@ module.exports = async function (_, env) {
resolve: { resolve: {
extensions: ['.ts', '.tsx', '.mjs', '.js', '.scss', '.css'], extensions: ['.ts', '.tsx', '.mjs', '.js', '.scss', '.css'],
alias: { alias: {
style: path.join(__dirname, 'src/style') style: path.join(__dirname, 'src', 'style')
} }
}, },
resolveLoader: { resolveLoader: {
alias: { alias: {
// async-component-loader returns a wrapper component that waits for the import to load before rendering: // async-component-loader returns a wrapper component that waits for the import to load before rendering:
async: path.join(__dirname, 'config/async-component-loader') async: path.join(__dirname, 'config', 'async-component-loader')
} }
}, },
module: { module: {