Hey guys, I was checking our “prod” build for Ionic 3 built PWA today and noticed the following in the devtools:
Somehow src files and other node_modules content got into www folder that was built using ‘npm run build --prod’ command.
I double checked our package.json and tsconfig.json and found nothing that would stand out:
So I wonder whats wrong and why would typescript make it into webpack built js files;/ ?
{
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"declaration": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"noUnusedParameters": false,
"noUnusedLocals": false,
"strict": false,
"lib": [
"dom",
"es2015"
],
"module": "es2015",
"moduleResolution": "node",
"sourceMap": true,
"target": "es5",
"baseUrl": "./src"
},
"include": [
"src/**/*.ts"
],
"exclude": [
"node_modules"
],
"compileOnSave": false,
"atom": {
"rewriteTsconfig": false
}
}