This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
webpack-lit-scss [2022/03/26 21:51] – admin | webpack-lit-scss [2022/03/26 22:29] – admin | ||
---|---|---|---|
Line 11: | Line 11: | ||
" | " | ||
" | " | ||
- | " | + | " |
}, | }, | ||
" | " | ||
" | " | ||
- | " | ||
" | " | ||
" | " | ||
- | " | ||
" | " | ||
" | " | ||
Line 24: | Line 22: | ||
" | " | ||
" | " | ||
- | " | ||
- | " | ||
" | " | ||
" | " | ||
Line 42: | Line 38: | ||
<code javascript webpack.config.js> | <code javascript webpack.config.js> | ||
const path = require(' | const path = require(' | ||
- | const PrettierPlugin = require(' | ||
- | const CopyWebpackPlugin = require(' | ||
module.exports = (env, argv) => { | module.exports = (env, argv) => { | ||
Line 59: | Line 53: | ||
ignored: [' | ignored: [' | ||
}, | }, | ||
- | plugins: [ | + | plugins: [], |
- | new PrettierPlugin({ | + | |
- | printWidth: 80, | + | |
- | tabWidth: 2, | + | |
- | useTabs: false, | + | |
- | semi: true, | + | |
- | encoding: ' | + | |
- | extensions: [ " | + | |
- | }), | + | |
- | new CopyWebpackPlugin({ | + | |
- | patterns: [ | + | |
- | { from: ' | + | |
- | { from: ' | + | |
- | { from: ' | + | |
- | ] | + | |
- | }) | + | |
- | | + | |
module: { | module: { | ||
rules: [ | rules: [ | ||
Line 82: | Line 60: | ||
use: ' | use: ' | ||
exclude: / | exclude: / | ||
- | }, | ||
- | { | ||
- | test: / | ||
- | use: [ | ||
- | { | ||
- | loader: ' | ||
- | options: { | ||
- | name: ' | ||
- | outputPath: ' | ||
- | } | ||
- | } | ||
- | ] | ||
}, | }, | ||
// Process files in TypeScript/ | // Process files in TypeScript/ | ||
Line 106: | Line 72: | ||
}, ' | }, ' | ||
}, | }, | ||
- | // Process files in Assets/ | + | // Process files in Assets/ |
{ | { | ||
test: / | test: / | ||
Line 137: | Line 103: | ||
</ | </ | ||
+ | <code javascript tsconfig, | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | // Disable for now, seems to copy *.ts files to | ||
+ | // places where they do not belong | ||
+ | //" | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | ] | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | ], | ||
+ | " | ||
+ | } | ||
+ | </ |