diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-03-02 06:26:31 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-03-02 06:26:31 +0900 |
| commit | 423f73777cd0b8e6ef916f1ad4e6971c1e560bb7 (patch) | |
| tree | 2b2b0fbe21322467321fa744795d13a567a22a6e /webpack | |
| parent | v3925 (diff) | |
| download | sharkey-423f73777cd0b8e6ef916f1ad4e6971c1e560bb7.tar.gz sharkey-423f73777cd0b8e6ef916f1ad4e6971c1e560bb7.tar.bz2 sharkey-423f73777cd0b8e6ef916f1ad4e6971c1e560bb7.zip | |
nanka iroiro
Diffstat (limited to 'webpack')
| -rw-r--r-- | webpack/webpack.config.ts | 17 |
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: [{ |