summaryrefslogtreecommitdiff
path: root/webpack
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-03-02 06:26:31 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-03-02 06:26:31 +0900
commit423f73777cd0b8e6ef916f1ad4e6971c1e560bb7 (patch)
tree2b2b0fbe21322467321fa744795d13a567a22a6e /webpack
parentv3925 (diff)
downloadsharkey-423f73777cd0b8e6ef916f1ad4e6971c1e560bb7.tar.gz
sharkey-423f73777cd0b8e6ef916f1ad4e6971c1e560bb7.tar.bz2
sharkey-423f73777cd0b8e6ef916f1ad4e6971c1e560bb7.zip
nanka iroiro
Diffstat (limited to 'webpack')
-rw-r--r--webpack/webpack.config.ts17
1 files changed, 17 insertions, 0 deletions
diff --git a/webpack/webpack.config.ts b/webpack/webpack.config.ts
index 775ecbd348..a873419450 100644
--- a/webpack/webpack.config.ts
+++ b/webpack/webpack.config.ts
@@ -3,6 +3,7 @@
*/
import * as fs from 'fs';
+import jsonImporter from 'node-sass-json-importer';
const minify = require('html-minifier').minify;
import I18nReplacer from '../src/common/build/i18n';
import { pattern as faPattern, replacement as faReplacement } from '../src/common/build/fa';
@@ -112,12 +113,28 @@ module.exports = Object.keys(langs).map(lang => {
{ loader: 'stylus-loader' }
]
}, {
+ test: /\.scss$/,
+ exclude: /node_modules/,
+ use: [{
+ loader: 'style-loader'
+ }, {
+ loader: 'css-loader'
+ }, {
+ loader: 'sass-loader',
+ options: {
+ importer: jsonImporter,
+ }
+ }]
+ }, {
test: /\.css$/,
use: [
{ loader: 'style-loader' },
{ loader: 'css-loader' }
]
}, {
+ test: /\.(eot|woff|woff2|svg|ttf)([\?]?.*)$/,
+ loader: 'file-loader'
+ }, {
test: /\.ts$/,
exclude: /node_modules/,
use: [{