Skip to content

Commit

Permalink
remove variables support (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomdye authored Mar 19, 2020
1 parent 1ce67e6 commit b742419
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ export default function webpackConfigFactory(args: any): Configuration {
const themesPath = args.themePath ? path.join(basePath, args.themePath) : path.join(basePath, 'src', 'theme');
const outputPath = path.join(basePath, 'output', 'theme');
const themes: string[] = args.themes;
const themeVariablesFiles = themes.map((theme) => {
return path.join(themesPath, theme, 'variables.css');
});

const postcssPresetConfig = {
browsers: ['last 2 versions', 'ie >= 10'],
Expand All @@ -32,15 +29,13 @@ export default function webpackConfigFactory(args: any): Configuration {
},
autoprefixer: {
grid: true
},
importFrom: themeVariablesFiles
}
};

const emitAll = emitAllFactory({
legacy: true,
inlineSourceMaps: false,
basePath: themesPath,
additionalAssets: themeVariablesFiles
basePath: themesPath
});

const tsLoaderOptions = {
Expand Down

0 comments on commit b742419

Please sign in to comment.