2019/06/22
v-kansai #7 Short LT
{
"scripts": {
"storybook": "start-storybook -p 6106",
"watch": "webpack --progress --config=.storybook/webpack.config.js --watch",
"build-storybook": "build-storybook",
},
}
{
loader: 'ts-loader',
options: {
appendTsSuffixTo: [/\.vue$/],
transpileOnly: true
},
}
module.exports = {
chainWebpack: config => {
config
.plugin('fork-ts-checker')
.tap(args => {
args[0].memoryLimit = 3072;
args[0].workers = 2;
return args;
});
},
}
const HardSource = require('hard-source-webpack-plugin')
plugins: [
new HardSource()
]
{
test: /\.(ts|tsx)$/,
use: [
{
loader: 'cache-loader',
options: {
cacheDirectory: path.resolve(
__dirname,
'node_modules/.cache/cache-loader'
)
}
}
]
}
module.exports = {
module: {
rules: [
{
test: /\.js$/,
include: path.resolve("src"),
use: [
"thread-loader"
]
}
]
}
}