Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 | 1x 1x 1x 1x | // tslint:disable: object-literal-sort-keys no-empty import { IFullTimplaConfig, ITimplaWebpackHelper, TIMPLA_PROCESS } from '../internal' const TERSER_DEFAULTS = { cache: true, parallel: true, terserOptions: { compress: { comparisons: false, // Disabled because of an issue with Terser breaking valid code: ecma: 5, inline: 2, warnings: false, // Disabled because of an issue with Uglify breaking seemingly valid code }, mangle: { safari10: true }, output: { ascii_only: true, comments: false, // Turned on because emoji and regex is not minified properly using default ecma: 5, }, parse: { // we want terser to parse ecma 8 code. However, we don't want it // to apply any minfication steps that turns valid ecma 5 code // into invalid ecma 5 code. ecma: 8, }, }, } export const TIMPLA_DEFAULTS: IFullTimplaConfig = { src: 'src', dest: 'public', staticFiles: { src: 'static', dest: './', srcOptions: {}, destOptions: {}, }, clean: { delOptions: { force: true }, }, stylesheets: { src: 'stylesheets', dest: 'stylesheets', srcOptions: {}, destOptions: {}, autoprefixerOptions: {}, cssnanoOptions: {}, postcssOptions: {}, sassOptions: { includePaths: ['node_modules'] }, extensions: ['sass', 'scss', 'css'], development: { sourceMap: true, }, production: { sourceMap: false, }, }, fonts: { src: 'fonts', dest: 'fonts', srcOptions: {}, destOptions: {}, extensions: ['woff2', 'woff', 'eot', 'ttf', 'svg'], }, images: { src: 'images', dest: 'images', srcOptions: {}, destOptions: {}, extensions: ['jpg', 'png', 'svg', 'gif'], }, svg: { svgstore: {}, outputName: 'icons.svg', src: 'svg', dest: 'images', srcOptions: {}, destOptions: {}, }, html: { src: 'html', dest: './', srcOptions: {}, destOptions: {}, }, javascripts: { src: 'javascripts', dest: 'javascripts', extensions: ['js', 'jsx', 'ts', 'tsx', 'mjs', 'json'], entry: {}, babelLoaderOptions: {}, webpackBundleAnalyzerOptions: { statsFilename: 'timpla-webpack-stats.json', openAnalyzer: true, }, customizeWebpackConfig({ webpackConfig }: ITimplaWebpackHelper) { return webpackConfig }, production: { devtool: 'source-map', hardSourceOptions: false, terserConfig: TERSER_DEFAULTS, }, useTypeScript: true, }, browserSync: { cwd: TIMPLA_PROCESS.INIT_CWD, open: !TIMPLA_PROCESS.isTimplaReloaded, }, production: { rev: false, open: false, }, development: { open: false, timplaWatch: true, devtool: 'cheap-module-eval-source-map', disableServerFallback: false, eslint: { esLintLoaderOptions: {}, }, middlewareConfig: { webpackDevMiddleware: {}, webpackHotMiddleware: {}, connectHistoryApiFallbackMiddleware: {}, }, tslint: { forkTsCheckerOptions: {}, }, webpackHotMiddlewareClient: { reload: true, }, }, watch: { gulpWatch: {}, }, additionalTasks: { development: {}, production: {}, }, } |