\href{https://travis-ci.org/css-modules/postcss-modules-extract-imports}{\texttt{ }}

Transforms\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{:local(.continueButton) \{}
\DoxyCodeLine{  composes: button from "{}library/button.css"{};}
\DoxyCodeLine{  color: green;}
\DoxyCodeLine{\} }

\end{DoxyCode}


into\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{:import("{}library/button.css"{}) \{}
\DoxyCodeLine{  button: \_\_tmp\_487387465fczSDGHSABb;}
\DoxyCodeLine{\}}
\DoxyCodeLine{:local(.continueButton) \{}
\DoxyCodeLine{  composes: \_\_tmp\_487387465fczSDGHSABb;}
\DoxyCodeLine{  color: green;}
\DoxyCodeLine{\} }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_postcss_modules_extract_imports_README_autotoc_md21683}{}\doxysection{Specification}\label{md_sfcode_node_modules_postcss_modules_extract_imports_README_autotoc_md21683}

\begin{DoxyItemize}
\item Only a certain whitelist of properties are inspected. Currently, that whitelist is `\mbox{[}\textquotesingle{}composes'\mbox{]}\`{} alone.
\item An extend-\/import has the following format\+: 
\begin{DoxyCode}{0}
\DoxyCodeLine{composes: className [... className] from "{}path/to/file.css"{}; }

\end{DoxyCode}

\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_postcss_modules_extract_imports_README_autotoc_md21684}{}\doxysection{Options}\label{md_sfcode_node_modules_postcss_modules_extract_imports_README_autotoc_md21684}

\begin{DoxyItemize}
\item {\ttfamily fail\+On\+Wrong\+Order} {\ttfamily bool} generates exception for unpredictable imports order.
\end{DoxyItemize}


\begin{DoxyCode}{0}
\DoxyCodeLine{.aa \{}
\DoxyCodeLine{  composes: b from './b.css';}
\DoxyCodeLine{  composes: c from './c.css';}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{.bb \{}
\DoxyCodeLine{  /* "{}b.css"{} should be before "{}c.css"{} in this case */}
\DoxyCodeLine{  composes: c from './c.css';}
\DoxyCodeLine{  composes: b from './b.css';}
\DoxyCodeLine{\} }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_postcss_modules_extract_imports_README_autotoc_md21685}{}\doxysection{Building}\label{md_sfcode_node_modules_postcss_modules_extract_imports_README_autotoc_md21685}

\begin{DoxyCode}{0}
\DoxyCodeLine{npm install}
\DoxyCodeLine{npm test }

\end{DoxyCode}


\href{https://travis-ci.org/css-modules/postcss-modules-extract-imports}{\texttt{ }}


\begin{DoxyItemize}
\item Lines\+: \href{https://coveralls.io/r/css-modules/postcss-modules-extract-imports?branch=master}{\texttt{ }}
\item Statements\+: \href{http://codecov.io/github/css-modules/postcss-modules-extract-imports?branch=master}{\texttt{ }}
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_postcss_modules_extract_imports_README_autotoc_md21686}{}\doxysection{Development}\label{md_sfcode_node_modules_postcss_modules_extract_imports_README_autotoc_md21686}

\begin{DoxyItemize}
\item {\ttfamily npm watch} will watch {\ttfamily src} for changes and rebuild
\item {\ttfamily npm autotest} will watch {\ttfamily src} and {\ttfamily test} for changes and retest
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_postcss_modules_extract_imports_README_autotoc_md21687}{}\doxysection{License}\label{md_sfcode_node_modules_postcss_modules_extract_imports_README_autotoc_md21687}
ISC\hypertarget{md_sfcode_node_modules_postcss_modules_extract_imports_README_autotoc_md21688}{}\doxysection{With thanks}\label{md_sfcode_node_modules_postcss_modules_extract_imports_README_autotoc_md21688}

\begin{DoxyItemize}
\item Mark Dalgleish
\item Tobias Koppers
\item Guy Bedford
\end{DoxyItemize}

\DoxyHorRuler{0}
 Glen Maddern, 2015. 