diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-03-03 07:32:18 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-03-03 07:32:18 +0900 |
| commit | 6ba1035b69e8a3c4413d343b893ea6d9254e951f (patch) | |
| tree | 310582e5dad44d50ddc3bc3c7cb1d6f9fdfafe51 /webpack/webpack.config.ts | |
| parent | :v: (diff) | |
| download | sharkey-6ba1035b69e8a3c4413d343b893ea6d9254e951f.tar.gz sharkey-6ba1035b69e8a3c4413d343b893ea6d9254e951f.tar.bz2 sharkey-6ba1035b69e8a3c4413d343b893ea6d9254e951f.zip | |
nanka iroiro
Closes #1168, #1169
Diffstat (limited to 'webpack/webpack.config.ts')
| -rw-r--r-- | webpack/webpack.config.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/webpack/webpack.config.ts b/webpack/webpack.config.ts index a873419450..cfb1299708 100644 --- a/webpack/webpack.config.ts +++ b/webpack/webpack.config.ts @@ -12,7 +12,8 @@ const constants = require('../src/const.json'); import plugins from './plugins'; import langs from '../locales'; -import version from '../src/version'; +const meta = require('../package.json'); +const version = meta.version; global['faReplacement'] = faReplacement; @@ -59,7 +60,7 @@ module.exports = Object.keys(langs).map(lang => { rules: [{ test: /\.vue$/, exclude: /node_modules/, - use: [/*'cache-loader', */{ + use: ['cache-loader', { loader: 'vue-loader', options: { cssSourceMap: false, @@ -140,6 +141,7 @@ module.exports = Object.keys(langs).map(lang => { use: [{ loader: 'ts-loader', options: { + happyPackMode: true, configFile: __dirname + '/../src/web/app/tsconfig.json', appendTsSuffixTo: [/\.vue$/] } |