Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PreCompiler 重构 #94

Closed
ImHype opened this issue Apr 2, 2017 · 1 comment
Closed

PreCompiler 重构 #94

ImHype opened this issue Apr 2, 2017 · 1 comment
Assignees

Comments

@ImHype
Copy link
Member

ImHype commented Apr 2, 2017

接管 router,使用运行时 compile 的机制

@ImHype ImHype self-assigned this Apr 2, 2017
@ImHype ImHype closed this as completed Apr 3, 2017
@ImHype
Copy link
Member Author

ImHype commented Apr 3, 2017

/**
 * Runtime Processor
 */
processors: [
    {
        base: __dirname,
        publicPath: '/src/css/:css.css',
        pipeline: [
            new Mcss({
                paths: []
            }),
            new AutoPrefixer({
                cascade: false,
                browsers: '> 5%'
            })
        ],
        toSource: raw => {
            return raw.replace(/css/g, 'mcss');
        }
    }
],

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant