I implement webpack in angular without cli.
directory tree:
- aplication
- -app
- --directive
- --services
- -- models
- --more... -assets -build - webpack conf
- -src
webpack configure
- build.js >https://pastebin.com/6YCMvtF6
- config.js >https://pastebin.com/cQWMqjB0
- env_prod.js > https://pastebin.com/Gw9pv4EW
- webpack_base_config.js >https://pastebin.com/gSGrayed
- webpack_prod_config.js >https://pastebin.com/3m26ZVaa
Command NPM RUN PROD throws
ERROR in Error: Child compilation failed:
Entry module not found: Error: Can't resolve 'E:\index.html' in 'E:\cms s':
Error: Can't resolve 'E:\index.html' in 'E:\cms'
- compiler.js:76
[cms_authors]/[html-webpack-plugin]/lib/compiler.js:76:16
- Compiler.js:296 Compiler.<anonymous>
[cms_authors]/[webpack]/lib/Compiler.js:296:10
- Compiler.js:499
[cms_authors]/[webpack]/lib/Compiler.js:499:13
- Tapable.js:202 next
[cms_authors]/[tapable]/lib/Tapable.js:202:11
- CachePlugin.js:62 Compiler.<anonymous>
[cms_authors]/[webpack]/lib/CachePlugin.js:62:5
- Tapable.js:206 Compiler.applyPluginsAsyncSeries
[cms_authors]/[tapable]/lib/Tapable.js:206:13
- Compiler.js:496
[cms_authors]/[webpack]/lib/Compiler.js:496:10
- Tapable.js:195 Compilation.applyPluginsAsyncSeries
[cms_authors]/[tapable]/lib/Tapable.js:195:46
- Compilation.js:649 self.applyPluginsAsync.err
[cms_authors]/[webpack]/lib/Compilation.js:649:19
- Tapable.js:195 Compilation.applyPluginsAsyncSeries
[cms_authors]/[tapable]/lib/Tapable.js:195:46
- Compilation.js:640 self.applyPluginsAsync.err
[cms_authors]/[webpack]/lib/Compilation.js:640:11
- Tapable.js:202 next
[cms_authors]/[tapable]/lib/Tapable.js:202:11
- UglifyJsPlugin.js:230 Compilation.compilation.plugin
[cms_authors]/[webpack]/lib/optimize/UglifyJsPlugin.js:230:5
- Tapable.js:206 Compilation.applyPluginsAsyncSeries
[cms_authors]/[tapable]/lib/Tapable.js:206:13
- Compilation.js:635 self.applyPluginsAsync.err
[cms_authors]/[webpack]/lib/Compilation.js:635:10
- Tapable.js:195 Compilation.applyPluginsAsyncSeries
[cms_authors]/[tapable]/lib/Tapable.js:195:46
ERROR in Entry module not found: Error: Can't resolve 'E:\cms_authors\app\systemjs.config.js' in 'E:\cms'
ERROR in ./app/_services/hash.service.ts
Module not found: Error: Can't resolve 'sha256' in 'E:\cms_authors\app\_services'
@ ./app/_services/hash.service.ts 10:0-17
@ ./app/_services/index.ts
@ ./app/app.module.ts
@ ./app/main.ts
ERROR in ./app/_directives/article/preview.component.html?v=${new Date().getTime()}
Module not found: Error: Can't resolve './assets/images/phone_image.png' in 'E:\cms\app\_directives\article'
@ ./app/_directives/article/preview.component.html?v=${new Date().getTime()} 1:2388-2430
@ ./app/_directives/article/preview.component.ts
@ ./app/_directives/article/index.ts
@ ./app/app.module.ts
@ ./app/main.ts